Link to home
Start Free TrialLog in
Avatar of Ernesto
ErnestoFlag for Mexico

asked on

how to achive line break on each field

hi all
i want a line per ittem, please help

ObjSendMail.HTMLBody = "Nombre:" +" " + Request.Form("fname") & Chr(10) & "Email:" +" " + Request.Form("email") & Chr(10) & "Consultorio:" +" " + Request.Form("consultorio") & Chr(10) & "Comentarios:" +" " + Request.Form("message")

Open in new window


tsm
Avatar of NerdsOfTech
NerdsOfTech
Flag of United States of America image

If this is for email:

replace Char(10) with "<br>"

ObjSendMail.HTMLBody = "Nombre:" +" " + Request.Form("fname") &  "<br>" & "Email:" +" " + Request.Form("email") &  "<br>" & "Consultorio:" +" " + Request.Form("consultorio") & "<br>" & "Comentarios:" +  " " + Request.Form("message")

Open in new window


If this is for a VB application:

replace Char(10) with vbcrlf

ObjSendMail.HTMLBody = "Nombre:" +" " + Request.Form("fname") &  vbcrlf & "Email:" +" " + Request.Form("email") & vbcrlf & "Consultorio:" +" " + Request.Form("consultorio") & vbcrlf & "Comentarios:" + " " + Request.Form("message")

Open in new window

Avatar of Ernesto

ASKER

is asp form mail it
ASKER CERTIFIED SOLUTION
Avatar of NerdsOfTech
NerdsOfTech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ernesto

ASKER

Thats It