CDOSYS - HTML and TEXT messages

B

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!
 
P

Paxton

Bob said:
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 = "(e-mail address removed)"
.To = "(e-mail address removed)"
.TextBody = "This a text only email."
'as opposed to an html email where you would use the .HtmlBody property
.Send
End With

/P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top