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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic E-Mail

Status
Not open for further replies.

xTiamatx

Programmer
Jul 20, 2003
22
0
0
US
I hope this is VBSCRIPT, I apologize if it is not

in the Mailer.Body = &quot;&quot;, I need to be able to put <br> or some other form of this, I need a professional looking e-mail, not a bunch of things jumbled together all on one line. Does anyone know how to accomplish this? I've given the code for my page below:


<html>
<head>
<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<%
Dim Mailer

on error resume next
response.buffer = true
Set Mailer = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
Mailer.To = &quot;GoodGood@hotmail.com&quot;
Mailer.From = &quot;IWIN@Yahoo.com&quot;
Mailer.Subject = &quot;Boo&quot;
Mailer.Body = &quot;This line needs to be able to be broken into separate lines&quot;

Mailer.MailFormat = 1
Mailer.BodyFormat = 1
Mailer.Send

Set Mailer = Nothing
response.flush()
%>
</head>
<body>

</body>
</html>

Thanks,
Kerry
 
Build it up as a seperate string and then put it in at the end, you may have to use carriage returns rather than a <br> to support all mail clients.
 
Something like:
Code:
Mailer.Body = &quot;This line is&quot; & vbCrLF & &quot;broken into separate lines&quot;
 
Have a look at -
In the first paragraph they recommend you not use CDONTS.NewMail - they also link to a better way of doing it.

Good luck

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top