the ASP code below is taking the contents from a text file and then sticking the text from the file into an email and sending the email
Set myMail=CreateObject("CDO.Message")
myMail.Subject = "subject Newsletter"
myMail.From = "email@whatever.com"
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(lpageaddress, 1)
lmail = f.ReadAll
strBody = "You have recieved this email to "& lowcasesend &" in the "& lmailformat &" format. "
strBody = strBody &"If you would like to change to "& laltformat &" format, click this link : http://aegonaccess/newsletter/changesubsformat_test_aa.asp?id="& id
lmail = lmail & strBody
myMail.TextBody = lmail
f.Close
set f = nothing
set fso = nothing
myMail.Configuration.Fields.Update
On Error Resume Next
myMail.Send
set myMail = nothing
Problem occurs with the strBody lines. These include details coming from a database so they have to be added to the email after the text contained in the text file.
What I’m looking to do is trying to add a new line into the email text so that the lines in the strBody variable don’t appear as a large paragraph but actually as several lines of text
Any help?