How we can solve this html problem?

Newbie HTML e-mail publisher experiencing problems with subscribers

  • Switched from a shared to a dedicated box at Interland. Here's the header script $rfc822date = date("r"); $headers = "From: Marc <[email protected]>\r\n"; $headers .= "Date: ".$rfc822date."\r\n"; $headers .= "X-Sender: <[email protected]>\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, "[email protected]"); 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' <[email protected]> To: <[email protected]> Sent: Monday, October 13, 2003 2:30 AM Subject: SalesLadder: 358 Jobs in this Issue > X-Sender: <[email protected]> > 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?

  • Answer:

    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 <[email protected]>\n"; $headers .= "Date: ".$rfc822date."\n"; $headers .= "X-Sender: <[email protected]>\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 at Google Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.