[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

detecting HTML based e-mail

Posted on 2000-03-06
2
Medium Priority
?
170 Views
Last Modified: 2013-12-25
I want to create an HTML based newsletter that is sent to users that subscribed to it. The problem is that if users do not have an HTML capable mail reader, then they can can not read the newsletter. Is there a way to autodetect if the client is capable of interpreting HTML and then send the appropriate version of the newsletter (HTML or text)?
0
Comment
Question by:mjara1
[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 Comments
 
LVL 18

Expert Comment

by:mgfranz
ID: 2589366
Nope.  What you are asking for is essentially a way to tell if the user is going to open their email in a browser based client, a POP3 type viewer, or with a telnet session.  Sorry, the only way I can suggest is to submit both in the same message, the HTML based first, then tag on the text version.  

Most MIME-aware Internet mail applications are already able to either properly format text/enriched mail or, at the very least, are able to strip out the formatting commands and display the readable text. The same is not true for HTML or SGML.  The current RFC on HTML [RFC-1866] and Internet Drafts on SGML have many features which are not necessary for Internet mail, and are missing a few capabilities that text/enriched already has.

If you are able to come up with a solution please let me know...
0
 
LVL 8

Accepted Solution

by:
jhurst earned 300 total points
ID: 2589680
typically the way this is handled is to use a multi-part message with the html version and a plainn/text version marked as an alternate.

From: mere@here.now
Subject: your subject
Mime-Version: 1.0
Content-Type: multipart/related;
        type="multipart/alternative";
        boundary="=====================_1068495==_.REL"
Status: RO

--=====================_1068495==_.REL
Content-Type: multipart/alternative;
        boundary="=====================_1068503==_.ALT"

--=====================_1068503==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

This is a special version since your mail reader
does not seem able to handle html pages

Your message here

--=====================_1068503==_.ALT
Content-Type: text/html; charset="us-ascii"
--=====================_1068503==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
html version of the message
<br>
<img src="cid:4.3.0.20000221163251.00a72290@shy.com.0" alt="Image"></html>

--=====================_1068503==_.ALT--

--=====================_1068495==_.REL
Content-Type: application/octet-stream; name="47125.$$itp"
Content-ID: <4.3.0.20000221163251.00a72290@shy.com.0>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="image.jpg"

An image goes here
--=====================_1068495==_.REL--

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

656 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