Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Returns In A String

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
I'm trying to modify a variable that will hold a mail message that I can send as the body in an html mailto tag, but I don't know how to add returns in it.

i.e.
<%
Dim Mailmessage
Mailmessage = &quot;This is line one&quot; &_
&quot;This is line two&quot; & _
&quot;This is line three&quot;
But it comes out as
This is line oneThis is line twoThis is linethree

How do I add returns to it and add more formatting?

BTW, I tried using the objMail code, but my crappy ISP has &quot;issues&quot; with it (mainly it doesn't work off their servers for some reason, but other asp code will...sheesh)

Thanks,

J
 
Dim Mailmessage
Mailmessage = &quot;This is line one&quot; & vbCrlf_
&quot;This is line two&quot; & vbCrlf_
&quot;This is line three&quot;

Hope this helps, s-)

NOTE: if vbCrlf is not define in ASP you can define it
Dim vbCrlf as String
vbCrlf=chr(13)+chr(10)
s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top