Google Answers Logo
View Question
 
Q: Newbie HTML e-mail publisher experiencing problems with subscribers ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Newbie HTML e-mail publisher experiencing problems with subscribers
Category: Computers > Programming
Asked by: gothammarc-ga
List Price: $25.00
Posted: 13 Oct 2003 12:42 PDT
Expires: 12 Nov 2003 11:42 PST
Question ID: 265817
Switched from a shared to a dedicated box at Interland.

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, "SalesLadder: $num Jobs in this Issue" , $message,
$headers, "-fmarc@salesladder.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
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

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?

Request for Question Clarification by joseleon-ga on 14 Oct 2003 00:03 PDT
Hello, gothammarc:

If you switched from a shared to a dedicated box, the problem it's
likely to be in this line:

mail ($add, "SalesLadder: $num Jobs in this Issue" ,
$message,$headers, "-fmarc@salesladder.com");

The additional parameter to sendmail maybe it's wrong, so let's try
the following:

-Remove the last parameter, that is, use this line:

mail ($add, "SalesLadder: $num Jobs in this Issue" ,
$message,$headers);

-If still doesn't work, then use this line:

mail ($add, "SalesLadder: $num Jobs in this Issue" ,
$message,$headers, "-fmarc@{$_SERVER['SERVER_NAME']}");

-But if still doesn't work, I think we will need to change some
settings on your sendmail, because maybe an 'X-Warning' header it's
being added to the message.

Could you told an user to save the message they received to a file (in
.msg format) and post it somewhere on the net? This way I can perform
a better research.

Regards.

Clarification of Question by gothammarc-ga on 14 Oct 2003 07:49 PDT
deleting "-fmarc@salesladder":: tried that yesterday, didn't work

as for this:

"-fmarc@{$_SERVER['SERVER_NAME']}");

you'd like me to literally type in this command, OK, will try.

In the meantime, I am collecting .msg versions of the mistakes.

This is quite perplexing since I have e-mailed myself a copy of every
single outgoing e-mail, and they all arrive at my Outlook fine. what
the heck? that's a strange problem.

Request for Question Clarification by joseleon-ga on 14 Oct 2003 08:43 PDT
Hello, gothammarc:

Yes, if you add this to the mail line:

"-fmarc@{$_SERVER['SERVER_NAME']}"); 

This makes take the server name instead salesladder.com.

Yes, this is a very strage problem, but everything has a solution ;-)

It would be great if you put the .msg files online.

Regards.

Clarification of Question by gothammarc-ga on 14 Oct 2003 10:28 PDT
OK, i have posted the message at:

www.salesladder.com/SalesLadderMessage.msg 

please let me know when I can take this down, as it has subscriber info in it.

Request for Question Clarification by joseleon-ga on 14 Oct 2003 11:29 PDT
Hello, gothammarc:
  You can remove it safely, I have downloaded it. I'm going to do some research.

Regards.

Request for Question Clarification by joseleon-ga on 14 Oct 2003 12:06 PDT
Hello, gothammarc:
  
  Unfortunately you have saved it from Outlook 2000 or up, so I cannot
get the real headers of that message. Also I would need a message that
can be read correctly. Could you save them in .eml format?

If not, don't worry, just try to remove the \r\n from all the lines
and change it to only \n, because some mail transfer agents work fine
with \r\n but all work with just \n (despite the RFC), this can make
sense because you have changed from server. Try this:

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

Regards.

Clarification of Question by gothammarc-ga on 14 Oct 2003 12:16 PDT
OK, will try without "/r"

*BUT* why would users get the e-mail just fine fom the shared box for
weeks, and then when I port over to dedicated box, they start
receiving messages garbled?

What would Verizon, Cox, Comcast, Adelphia have in common, that
RoadRunner, Hotmail and Yahoo don't?

Will post results soon.

Request for Question Clarification by joseleon-ga on 14 Oct 2003 12:42 PDT
Hello:
  I think we will find the solutions as soon as we find the solution
to your problem. I think the problem is not in their connections or in
their mail clients, the problem is in your MTA, that is, in the
program your server uses to send mail, in the shared server worked
fine with your script, but not in the dedicated one. Let's see...

Regards.

Request for Question Clarification by joseleon-ga on 15 Oct 2003 23:38 PDT
Hello, gothammarc:
  Have you tested the answer I gave you? I'm curious to know ;-)

Regards.

Clarification of Question by gothammarc-ga on 17 Oct 2003 08:27 PDT
Hi Joseleon --

Sorry, I was in CA on business and couldn't access this site thru my
Sidekick PDA.

Tried the new system (without \r) with 6 subscribers. 4 reported it
worked! 2 didnt reply.

The next newsletter goes out to full subscriber base on Monday
morning. Let's keep fingers crossed, but it looks good.

2 questions:
1) you think this method is what all other HTML newsletters use?
2) why do you think it worked on shared box, but not dedicated?

Really appreciate your quick turnaround and exhaustive answers. And
will let you know by late Monday if we've got this one licked or not.

A thousand thanks,

Marc

Request for Question Clarification by joseleon-ga on 18 Oct 2003 02:52 PDT
Hello, gothammarc:
  Nice to hear it worked, so let's wait until monday!

Regarding your two questions:
1) Depends on the software they use, but if you are looking for a
newsletter software to send mail to a hughe user base, I suggest you
to try another products/methods. You are using the mail function, this
function opens and closes a socket each time needs to send a mail,
while there are another faster and less resource intensive ways. If
you want to get more info on this matter, just let me know.

2) You have changed from machine, this could mean the server software
you are using the send mail also changed, and some MTA (your mail
sending software) doesn't allow \r\n on all fields, some needs just
\n, some others needs a mix of \r\n and \n, there is an RFC about
that, but some of them don't relay on it.

Regards.

Clarification of Question by gothammarc-ga on 20 Oct 2003 13:47 PDT
Hi Jose Leon,

E-mail went to several thousand subscribers this morning; follow-up
has so far been 100% affirmative that your methodology worked
correctly.

So with that, I can confirm this question has been answered beyond my
highest level of satisfaction! Thanks so much! What a lifesaver!

I've just hired a VP, Tech, so I'm going to run our correspondence by
him and will get back to you with further questions.

You really don't know how much you've saved me here! 13 different tech
departments couldn't answer this question.

In Deepest Gratitude,

Marc
Answer  
Subject: Re: Newbie HTML e-mail publisher experiencing problems with subscribers
Answered By: joseleon-ga on 20 Oct 2003 13:54 PDT
Rated:5 out of 5 stars
 
Hello, gothammarc:

  I'm really glad that my answer was useful to you and don't hesitate
to use my services again, I'm are here to help you.

Here is the definitive answer:

Try to remove the \r\n from all the lines and change it to only \n,
because some mail transfer agents work fine with \r\n but all work
with just \n (despite the RFC), this can make sense because you have
changed from server.

Try this:
 
$rfc822date = date("r");  
$headers = "From: Marc <marc@xxxxxladder.com>\n";  
$headers .= "Date: ".$rfc822date."\n";  
$headers .= "X-Sender: <marc@xxxxxladder.com>\n";  
$headers .= "X-mailer: xxxxxladder\n";  
$headers .= "MIME-Version: 1.0\n";  
$headers .= "Content-type: text/html; charset=iso-8859-1\n\n";  
 
Best regards.
gothammarc-ga rated this answer:5 out of 5 stars and gave an additional tip of: $10.00
If there were 6 stars, this guy would deserve 7. Thirteen different IT
departments couldn't answer my question on a tricky HTML e-mail
problem that was eating away at my newsletter business. Very rapid
response, thoughtful answers, and most importantly, a solution in no
time flat!

Can't possibly recommend Jose Leon highly enough.

Marc

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy