Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Why Do Some Mails Show HTML Code

Quote Reply
Why Do Some Mails Show HTML Code
Hi,

Some mails delivered by the same sendmail program to GM account deliver the same in txt mode as code. Example is as follows:

<html>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<br>
<table border="0" width="460">
<tr>
<td colspan="2" bgColor="#93BEE2"><b>Welcome Anup Singh!</b></td>
</tr>
<tr>
<td colspan="2">Thanks for registering!
Your account <b>anup</b> is now active and you can go to: <A HREF="
http://www.example.com">http://www.example.com</A><
/td>

</tr>
<tr>
<td colspan="2" bgColor="#DBEAF5"><b>Your Personal FTP
Information:</b></td>
</tr>
<tr>
<td>FTP Server:</td>
<td>example.com</td>
</tr>
<tr>
<td>FTP Login:</td>
<td>anup</td>
</tr>
<tr>
<td>MySQL ID:</td>
<td>No MySQL Database</td>
</tr>
<tr>
<td>FTP/MySQL Password:</td>
<td>For security reasons your password is not included in this
email.</td>
</tr>
<tr>
<td colspan="2"><hr size="1" color="#8CA5B5"></td>
</tr>
<tr>
<td colspan="2">For any questions please contact us at: <a
href="mailto:webadmin@example.com">webadmin@example.com</a
>
</td>
</tr>
</table>

</html>

Last edited by:

Alex: Aug 17, 2003, 9:09 AM
Quote Reply
Re: [anup123] Why Do Some Mails Show HTML Code In reply to
Can you send me the headers of the email? Perhaps the email's headers are incorrect, causing it to be read in as text?

Adrian
Quote Reply
Re: [brewt] Why Do Some Mails Show HTML Code In reply to
Return-Path: nobody@example.com

Received: from localhost (localhost [127.0.0.1]) (uid 99) by example.com with local; Thu, 18 Jul 2002 16:59:10 +0530Date: Thu, 18 Jul 2002 16:59:10 +0530

From: webadmin@example.com

Subject: HTML Mail DVHSTo: "Anup Singh" <anup@example>Content-

Type: text/plain; charset=us-ascii

Content-Transfer-Encoding: 7bitMessage-Id: <courier.3D36A69C.00005E49@example.com>Delivered-To: mail.example-anup@example.com

Mime-Version: 1.0X-Mime-Autoconverted: from 8bit to 7bit by courier 0.28

This is the Header of a Mail sent in HTML format. Why is the Header reading as Text/Plain?

Thnx

Anup

Last edited by:

Alex: Aug 17, 2003, 9:10 AM
Quote Reply
Re: [brewt] Why Do Some Mails Show HTML Code In reply to
Hi Adrian,

I was execting a reply on that after posting the header details on forum.

I can wait (though not indefinately....)

Anup
Quote Reply
Re: [anup123] Why Do Some Mails Show HTML Code In reply to
Hi,

That's because the mail is not HTML mail. The headers say:

Content-Type: text/plain; charset=us-ascii

So Gossamer Mail treats it as a text message. HTML mail should be labeled as text/html. This is an issue with whatever you are using to send the mail.

Cheers,

Alex
--
Gossamer Threads Inc.