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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top