How can I display line breaks in an email message? [Print this FAQ]
Answer:
When starting out with sending email messages through ASP pages, many developers have trouble inserting line breaks. To accomplish this, simply insert a vbCrLf wherever you want a line break in your email's body. For example, using CDONTS, we'd have:
Dim objMail Set objMail = Server.CreateObject("CDONTS.NewMail")
'Set the various CDONTS properties... objMail.To = "whatever@wherever.com" ' ... objMail.Body = "This is on line 1" & vbCrLf & _ "And this is on line 2!"
Simply throw in a vbCrLf wherever you need a line break in your email!
FAQ posted by Scott Mitchell at
9/24/2000 12:53:09 AM to the
Email category.
This FAQ has been viewed 48,000 times.
Do you have a FAQ you'd like to suggest?
Suggestions? Comments? If so, send it in!
Also, if you'd like to be a FAQ Admin (creating/editing FAQs),
let me know! If you are looking for other FAQs, be
sure to check out the 4Guys
FAQ and Commonly Asked Messageboard Questions!