I populate a text area for the ‘body of my message’ on a listbox change event. This just gives the user a preview of what the email body is going to look like. They can’t edit it.
while not sessions.eof
//next line because titlecase does not seem to work
dname=mid(sessions.field("Event_Dayname").StringValue,1,1)+lowercase(mid(sessions.field("Event_Dayname").StringValue,2))
tmp=tmp+dname+", "+fromsql(sessions.field("Event_Date").stringvalue)+", "+sessions.field("Event_Session").stringvalue+"00hrs, "+sessions.field("Booked").stringvalue+" places booked."+EndOfLine
sessions.MoveNext
wend
When I then later use the following code to add the details to an email message;
mail.bodyPlainText = edtMessage.text
mail.bodyHTML = edtMessage.text
All I get in the email message that arrives is a long line of all the comntents without the line feeds. All suggestions welcome, I am sure its a simple one but its been a long day