html formatted email

How do Netscape mail, Outlook, &c format email as an html page? How do they manage to send the message out as both plain text and html so that both text-only and html email programs can read the message? In other words, I like to write my own code, and would like to jazz up my band’s email newsletter a bit. I’ve tried to do it simply by writing the code in the body of the email message, but all I get is plain text when viewing the sent message.

Is there some special tag that I don’t know about? Like maybe putting </notags> before the html bit and <notags> after it?

but in Outlook Express 5, while editing a message, you can click on the View, amd make sure that Source Edit is checked. At that point, you have will have tabs at the bottom of the message body area that let you switch between “Edit” (the normal view), “Source” (html code), and “Preview” (uneditable). This should help in a situation like what you are talking about.

Just a guess, but email is usually sent with header information for each message that the mail program uses to determine various things (if there are attachments, multiple parts to the message, attachment encoding, etc.). This header also indicate the content type of the message you are sending. This has to be set to the proper value in order for the message, when received, to appear HTML-formatted instead of plain text. The easiest way to do this is to tell your email program to send HTML formatted email. Then, I would take Meephead’s advice and try to edit the source.

The content is sent in plain text and in HTML and the mail program will choose HTML if it can read it.

The following is a complete email with a graphic included. Notice the header, the separators, etc. First blank line indicates end of header.

Try this: Open notepad and copy and paste this text. Now change the extension to EML and it will be opened by OE. You can also drag it from the desktop into you OE folders.

Now change the extension of the copy on the desktop to MHT and see what happens. Interesting stuff and useful once you know how to handle email files.

From: Joe Blowe <poblo@earthlink.gov>
To: asf@asf.gov
Subject: test
Date: Fri, 27 Oct 2000 20:48:32 -0400
MIME-Version: 1.0
Content-Type: multipart/related;
type=“multipart/alternative”;
boundary="----=_NextPart_000_003C_01C04057.44F03820"
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

This is a multi-part message in MIME format.

------=_NextPart_000_003C_01C04057.44F03820
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_003D_01C04057.44F03820"
------=_NextPart_001_003D_01C04057.44F03820
Content-Type: text/plain;
charset=“iso-8859-1”
Content-Transfer-Encoding: quoted-printable
This is a test =20

------=_NextPart_001_003D_01C04057.44F03820
Content-Type: text/html;
charset=“iso-8859-1”
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV> </DIV>
<DIV><FONT face=3DArial><STRONG>This is a test  =
</STRONG></FONT><IMG=20
align=3Dbaseline alt=3D"" border=3D0 hspace=3D0=20
src=3D"cid:003b01c04078$cbfa3700$faeb1e26@alf"></DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>

------=_NextPart_001_003D_01C04057.44F03820–

------=_NextPart_000_003C_01C04057.44F03820
Content-Type: image/gif;
name=“smile.gif”
Content-Transfer-Encoding: base64
Content-ID: <003b01c04078$cbfa3700$faeb1e26@alf>

R0lGODdhDwAPAPcAAAAAAP///wA++ADO5wD23wA6uADatwDsbwD8fwD8fwD8fwCccwCaswD6vwD2
3wDO5wA++AAAAEneDP///wAAAEyGvGk2rAAAAAAAAAAAAAAAAAAAAwABBFw6Q0ROSVxTV0tTRVxQ
T2xpbWlnLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwABBFw6Q0ROSVxTV0tTRVxQT2xpbWlnLgAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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