Forums

This topic is locked

email conformation - formating content???

Posted 25 Sep 2001 22:10:53
1
has voted
25 Sep 2001 22:10:53 ben tilford posted:
Hi All...

Could someone tell me how to rewrite this code so it looks like a normal email and not loads of tags n stuff in the recipients inbox?

code:

<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail"
objCDO.From = " "
objCDO.To = strRecipient
objCDO.Subject = "Wahoo!!!...u r now a member..."
objCDO.Body = "<font face = arial>" &_
"as the subject says...wahoo!!!" &_
"<br>" &_
"u r now a member of favouritesonline.com!" &_
"<br>" &_
"here r your signing in details:" &_
"<br>" &_
"username:" & strUsername &_
"password:" & strPassword &_
"<br>" &_
"go to <a href='www.favouritesonline.com'>www.favouritesonline.com</a>to sign in." &_
"<br>" &_
"bestest regards," &_
"<br>" &_
"the fantastic staff - favouritesonline.com" &_
"</font>"
objCDO.Send()
Set objCDO = Nothing
%>

Cheers...Ben...

Replies

Replied 26 Sep 2001 16:50:15
26 Sep 2001 16:50:15 Joel Martinez replied:
well, I would suggest not sending HTML formatted messages, as there may be some users that can't recieve them.

then formatting you're trying, can be accomplished using the VBS Constant "VbCrLf"
instead of<pre id=code><font face=courier size=2 id=code>"as the subject says...wahoo!!!" &_
"&lt;br&gt;" &_</font id=code></pre id=code>use the newline constant like so<pre id=code><font face=courier size=2 id=code>"as the subject says...wahoo!!!" & VbCrLf &_</font id=code></pre id=code>That will save you the trouble of sending HTML

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/

Reply to this topic