Page 1 of 1

newbie with e-mail publishing script has HTML e-mail issue

Posted: Mon Oct 13, 2003 3:15 pm
by mcenedella
On switching from a shared to a dedicated box at Interland, my script began misbehaving for certain clients.

Here's the header script
$rfc822date = date("r");
$headers = "From: Marc <marc@xxxxxladder.com>\r\n";
$headers .= "Date: ".$rfc822date."\r\n";
$headers .= "X-Sender: <marc@xxxxxladder.com>\r\n";
$headers .= "X-mailer: xxxxxladder\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n\r\n";

here is the PHP e-mail function:
mail ($add, "Subject line" , $message,
$headers, "-fmarc@xxxxxladder.com");

Customers with problem are using Outlook 2000, 2002 and Norton
Anti-Virus / Internet Security.

The puzzling elements:
a) I receive the same e-mail through my RR.com and Outlook just fine
b) These readers are able to receive HTML e-mails from other sources
jsut fine
b.1.) when I forward these same customers the HTML e-mail, they can receive it fine as well
b.2.) some proficient customers have discovered that the e-mail looks fine when viewed at the webserver level, but when downloaded to their Outlook, has become garbled
c) these same readers received HTML from me just fine, with the same
script, before i moved to the dedicated box.
d) It is only readers with at-home DSL and cable providers such as
Verizon, Comcast, Cox, Optonline, that have this problem. Outlook and Norton have no known problem of this ilk.

Here's a sample of what they receive:
----- Original Message -----
From: 'Marc' <marc@xxxxladder.com>
To: <ees@aaaaaaa.com>
Sent: Monday, October 13, 2003 2:30 AM
Subject: SalesLadder: 358 Jobs in this Issue


> X-Sender: <marc@xxxxxladder.com>
> X-mailer: xxxxxladder
> MIME-Version: 1.0
> Content-type: text/html; charset=iso-8859-1
>
>
>
>
> <TABLE width=600>
> <TBODY>
> <TR>
> <TD><FONT face='Arial, Helvetica, sans-serif' size=2>
> <TABLE borderColor=#000000 cellSpacing=0 cellPadding=0
border=1>
> <TBODY>
>
etc. etc.

What is cuasing this and how can I solve it?

Thanks!

marc in gotham

Posted: Mon Oct 13, 2003 4:25 pm
by Gen-ik
This is a wild guess here but try it after removing the X-Sender and X-mailer from the headers. I've heard that some servers don't like the X stuff, and it doesn't make any difference to what the person sees at the other end anyway.

X not it

Posted: Mon Oct 13, 2003 4:51 pm
by mcenedella
have already tried it both ways, with and without X-mailer and X-sneder; and have striped it down to as little as just thte From, MIME and Content-type headers. And problem persists.

thanks for the thought though.