I haven't used the Telamon email program, so I don't know how to do
it with that program, but if you use Sendmail (free), you can submit
files in standard RFC822/MIME format.
Basically, all you need is these two lines in the header:
Mime-version: 1.0
Content-type: text/html
But see multipart/alternative below.
If you want to send embedded pictures with your HTML, it's a bit
more complicated. (RFC2557)
These two files are in the right format, after you remove the
leading "A" or "B", which I put in so that any mail programs won't
try to alter them (like replacing "From:" with ">From") or get
confused by the message boundaries. As you can see, it's pretty
simple.
RFC822 (now RFC2822): http://www.rfc-editor.org/rfc/rfc2822.txt
MIME (RFC2045): http://www.rfc-editor.org/rfc/rfc2045.txt
Also relevant are RFCs 2046-2049, 2183, 2184,
2231, 2387, 2557, 2854
BFrom: "Ken Hirsch" <[log in to unmask]>
BTo: "Ken Hirsch" <[log in to unmask]>
BSubject: HTML test
BMime-version: 1.0
BContent-type: text/html
B
B<html>
B<head><title>Html test</title>
B</head>
BThis is just HTML.
B
B</html>
Unless you know your recipient can read HTML, you should send a
multipart/alternative, which looks like this:
AFrom: "Ken Hirsch" <[log in to unmask]>
ATo: "Ken Hirsch" <[log in to unmask]>
ASubject: multipart test
AMime-version: 1.0
AContent-type: multipart/alternative;
A boundary="=_UnLiKeLyCHARS3734"
A
A--=_UnLiKeLyCHARS3734
AContent-type: text/plain
AContent-disposition: inline
A
AThis is the text part.
A
A--=_UnLiKeLyCHARS3734
AContent-type: text/html
AContent-disposition: inline
A
A<html>
A<head><title>Html test</title>
A</head>
AThis is the HTML part.
A
A</html>
A
A--=_UnLiKeLyCHARS3734--
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|