Sending html formatted e-mail via telnet

L

Ludwig77

I'm doing some testing via telnet (using a utility called Putty so
that I can cust/paste).

No matter how I send the message source code, I can't get the html
formatted message to display in html upon receipt. Instead, the user
gets an ASCII formatted message (when viewed in Outlook) that shows
the code of the html.

I've tried copy/pasting the message source of a newly composed (in
Outlook) html formatted message into Telnet with no success.

I've also tried copy/pasting the message source of an html message
that I have already received, also with no success.

I've noticed that outlook uses these Content-Type: tags to indicate
the start of ASCII and html formatted code. I've tried pasting the
following into my telnet session with no success at receiving the
message in html:

MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)

Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C3FAEE.45605F10"

This message is in MIME format. Since your mail reader does not
understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3FAEE.45605F10
Content-Type: text/plain

------_=_NextPart_001_01C3FAEE.45605F10
Content-Type: text/html
<HTML><HEAD><TITLE>HTML TEST</TITLE></head><BODY bgcolor="blue"
text="white">
<center>
<h3>Testing.</h3>
</center>
</body>
</html>

------_=_NextPart_001_01C3FAEE.45605F10--

When I receive this message, it looks exactly as you see it above,
instead of in html format.

Any suggestions?
 
J

Jeff Stephenson [MSFT]

You need to remove the blank line before the Content-Type field. The first
blank line of a message marks the end of the message headers and the start
of the body.
 
L

Ludwig77

Jeff Stephenson said:
You need to remove the blank line before the Content-Type field. The first
blank line of a message marks the end of the message headers and the start
of the body.

Thank you Jeff.

I knew it had to be something simple.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top