469,284 Members | 2,508 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,284 developers. It's quick & easy.

CDOSYS - HTML and TEXT messages

Bob
Is there a way for me to send TEXT-only (i.e. no HTML) email message via
CDOSYS in ASP 3.0?

If so, how can that be done?

Thank you!
Jan 19 '06 #1
1 1948

Bob wrote:
Is there a way for me to send TEXT-only (i.e. no HTML) email message via
CDOSYS in ASP 3.0?

If so, how can that be done?

Thank you!


You need to apply the body text of your email to the .TextBody property

Set objMessage = CreateObject("CDO.Message")
with objMessage
.Subject = "Example CDO Message"
.From = "me@my.com"
.To = "yo*@yours.com"
.TextBody = "This a text only email."
'as opposed to an html email where you would use the .HtmlBody property
.Send
End With

/P.

Jan 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Travis Pupkin | last post: by
2 posts views Thread by crushando | last post: by
reply views Thread by Antonio | last post: by
2 posts views Thread by mister-Ed | last post: by
9 posts views Thread by paulmitchell507 | last post: by
4 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.