Solved

Adding plain text to a HTML/MIME email

Posted on 2013-06-11
4
332 Views
Last Modified: 2013-07-01
Hi - I have created a HTML email which I will be sending out via CDO and converted to a MIME format.  However, I am looking at spam scores and it is suggesting that I also add a text only version.

Can someone give me a pointer as I'm a little stuck (here is a stripped down version of the html).

Thank you (as always).


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Information</title>
<style type="text/css">
body, td, th {
	font-family: Verdana, Arial;
	font-size: 10pt;
	color: #000000;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.FooterText {
	font-size: 7.5pt;
}
</style>
</head>

<body>
<p>Here is the html content<span class="FooterText"><br />
  </span></p>
</body>
</html>

Open in new window

0
Comment
Question by:Andy Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39237007
As far as I can remember CDO has both a TextBody and an HTMLBody property you can set.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39237193
I think this http://www.enewsletterpro.com/articles/multi_part_mime_messages.asp is the most direct explanation of what you are supposed to.  There are several other 'types' that a MIME section can be and one of the most common is 'base64 encoded' which is used for attachments and embedded images.

Like @julianH referred to, CDO and other methods or programs like PHPMailer can automate a lot of this for you.

And desktop mail clients generally do not understand XHTML and web mail clients strip that part so that it does not affect their web page that your email appears in.  HTML4 is pretty much where HTML in email has stopped.
0
 

Author Closing Comment

by:Andy Brown
ID: 39290889
Thanks Dave that was really useful - sorry for taking so long to award the points.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39290913
You're welcome, thanks for the points.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question