By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,341 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

CDO and Multipart Email?

P: n/a
I am trying to send out an email newsletter using both HTML and plain text?
Any good resources for doing this? I can't seem to get it to display the
TextBody when Outlook is set to display emails using Plain Text.

I am using:

Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
objMail.To = varEmail
objMail.From = "we******* ( Webmaster)"
objMail.Subject = "My Subject"
objMail.BodyPart.ContentMediaType = "multipart/alternative"
objMail.TextBody = "No HTML here. I want this text to display if HTML is
turned off."
objMail.CreateMHTMLBody ""
Set objMail = Nothing

When I receive the email in outlook with HTML turned off, it comes up a
mess. I was hoping the TextBody would show.
Also, the images I am using have full paths
( but they are still showing up as
attachments with odd names like ATT21435.jpg.

Thanks for any help,
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.