kleb
06-03-2004, 05:52 PM
Hello,
I'm trying to insert the following text and variables into another variable for email transmission as follows:-
Dim txt
txt = ("A new person has just registered. The details are : <br>" &_
"First Name : "&strFirst&"<br>" &_
"Last Name : "&strLast&"<br>" &_
"Email : "&strEmail&"<br>" &_
"Password : "&strPassword&"<br>" &_
"Hint : "&strHint&"<br>" &_
"Answer : "&strAnswer)
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "me@website.com"
Objmail.From = "meagain@website.com"
ObjMail.Subject = "New Registrant"
ObjMail.Body = txt
ObjMail.Send
Set ObjMail = Nothing
Everything sends ok and no errors are thrown. It's just that when I get the email with the userinput the email text is all in a straight line. I want the correct linebreaks to render the email text in list format. I'd appreciate if someone can correct my mistakes.
Thanks your help
kleb
I'm trying to insert the following text and variables into another variable for email transmission as follows:-
Dim txt
txt = ("A new person has just registered. The details are : <br>" &_
"First Name : "&strFirst&"<br>" &_
"Last Name : "&strLast&"<br>" &_
"Email : "&strEmail&"<br>" &_
"Password : "&strPassword&"<br>" &_
"Hint : "&strHint&"<br>" &_
"Answer : "&strAnswer)
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "me@website.com"
Objmail.From = "meagain@website.com"
ObjMail.Subject = "New Registrant"
ObjMail.Body = txt
ObjMail.Send
Set ObjMail = Nothing
Everything sends ok and no errors are thrown. It's just that when I get the email with the userinput the email text is all in a straight line. I want the correct linebreaks to render the email text in list format. I'd appreciate if someone can correct my mistakes.
Thanks your help
kleb