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 = "email@example.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
This FAQ has been viewed 48,000 times.