This topic is locked

Carriage return for text e-mail

7/2/2008 2:00:44 AM
ASPRunnerPro General questions
R
Robvanlier author

Hi,
Does anybody know how to create a carriage return for an email message in plain text.

I have created following event, which is working fine, except for the hard return:
str = "select * from vacature" & Request("function")

Set rsTemp = server.CreateObject("ADODB.Recordset")

rsTemp.open str, dbConnection

Response.Write "<a href=""mailto:" & rsTemp("Email") & "?subject=Response on function " & rsTemp("Function") &

"&body=Dear " & rsTemp("Contactperson") & vbCrLF & "Lines after " &


", "">Click to reply</a>"
So all text is following on each other. I have tried almost everything and still not working.
regards,

Rob

P
Philip 7/2/2008

Rob
I use & vbcrlf
Philip

R
Robvanlier author 7/2/2008

Hi Philip,
I tried that:

& rsTemp("Contactperson") & vbCrLF & "Lines after "
But in the mail you won't see the return. So all the text is following.
regards

Rob

P
Philip 7/2/2008

Rob,
here is one of my (working) events - maybe this helps?

'** Send email with new data = Bestätigungs-Mail an Anmelder ****

' do not forget to setup email parameters like From, SMTP server etc

' on 'Security->User login settings' dialog
message ="Hallo " & dict("HF_Vorname_AOA") & " und " & dict("H_Name_AOA") & vbcrlf & vbcrlf

message = message & "Deine Anmeldung für die Lizenz-Nr. " & dict("H_Lizenz_AOA") & " (" & dict("H_Kategorie_AOA") & " " & dict("H_Klasse_AOA") & ") wurde in AOA registriert." & vbcrlf

message = message & "Mutationen kannst Du jederzeit online durchführen. Benutze dafür folgenden Link:" & vbcrlf

message = message & "(einfach beim gewünschten Turnier auf 'mutieren' klicken)"
email=dict("HF_email_AOA")

subject="Anmeldung bei " & dict("T_Veranstalter_AOA") & " - " & FormatDateTime(dict("T_Datum_AOA"), 2)
sendmail email, subject, message
BeforeAdd = True
' set BeforeAdd to True if you like to proceed with adding new record

' set it to False in other case


Philip