navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Multi Line Text Email

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Multi Line Text Email
Page: [1]
 
Joey

 

Posts: 172
Joined: 5/15/2002
From:
Status: offline

 
Multi Line Text Email - 1/10/2008 16:22:09   
How would I make the message go on more than one line?

<%
strWho = "test"
strTo = "someonesomwhere@aol.com"

If strWho = "" or strTo = "" Then
Response.Write ("You must complete both the Name and Email fields.")
Else
strFrom = "someonesomwhere@aol.com"
Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = strFrom
objMail.To = strTo
objMail.Subject = "CDONTS email!!!"
objMail.Body = "Dear " & strWho & ".line1 hello blah blah blah"
"line 2 blah blah blah"
"line 3 blah blah blah"
objMail.Send
Set objMail = nothing
Response.Write (strWho & " - an email was sent to you at " & strTo)
End If
%>
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Multi Line Text Email - 1/10/2008 16:58:33   
Try it like so with a line return :

strBody = strBody & "Dear " & strWho & vbcrlf
strBody = strBody & "line 2 blah blah blah" & vbcrlf
strBody = strBody & "line 3 blah blah blah" & vbcrlf

objMail.Body = strBody 


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Joey)
Joey

 

Posts: 172
Joined: 5/15/2002
From:
Status: offline

 
RE: Multi Line Text Email - 1/10/2008 17:09:37   
Thanks Spooky

(in reply to Joey)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Multi Line Text Email
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts