php - HTML Emails Displaying odd in some clients -


i'm using php generate fancy html email send visitors, reason visitors saying html isn't working them (seeing raw html rather pretty email).

i haven't narrowed down client, having talked them can receive other html emails it's i'm doing wrong...

my php code follows

$to = 'jm391@le.ac.uk'; $subject = 'daily update - new bikes matching alerts'; $headers = "from: john@findthatbike.co.uk\r\n"; $headers .= "reply-to: john@findthatbike.co.uk\r\n"; $headers .= "mime-version: 1.0\r\n"; $headers .= "content-type: text/html; charset=iso-8859-1\r\n";   if (mail($to, $subject, $message, $headers)) {     echo 'your message has been sent<br/>'; } else {     echo 'there problem sending email.<br/>'; } 

and $message variable loaded below links html source

http://www.findthatbike.co.uk/sampleemail.html

my customer forwarded non working email me , forwarded chunk below, i'm told gets html emails others not sure try...

from: john@findthatbike.co.uk [mailto:john@findthatbike.co.uk]  sent: 05 april 2013 08:35 to: xxxxx xxxxx subject: daily update - new bikes matching alerts  reply-to: john@findthatbike.co.uk  mime-version: 1.0  content-type: text/html; charset=iso-8859-1 message-id: <20130405073022.8597d9cf79d@my server address> date: fri,  5 apr 2013 08:30:22 +0100 (bst) x-invuribl-scan: scanned invuribl 3.1.1 on 05/04/2013 08:34:17 x-invuribl-weight: 0 x-invuribl-range: clean x-declude-sender: server name [my server ip] x-declude-spoolname: 72086847.eml x-declude-refid:  x-messagestream-note: scanned messagestream (www.messagestream.com). x-messagestream-scan: score [0] @ 08:34:29 on 05 apr 2013 x-messagestream-tests: whitelisted x-country-chain: united kingdom->destination           <html>         <body style="background:url('http://findthatbike.co.uk/images/bg3.jpg') repeat fixed 0 0 #eeeeee; padding-top: 10px; padding-bottom: 10px;"> 


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -