Solved

Adding plain text to a HTML/MIME email

Posted on 2013-06-11
4
327 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
  • 2
4 Comments
 
LVL 51

Expert Comment

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

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
Thanks Dave that was really useful - sorry for taking so long to award the points.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
You're welcome, thanks for the points.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now