Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text
Do you know if the mailto script allow set headers? Probably you must set a html header, something like this $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; Regards, Gerardo. On Tue, May 1, 2012 at 5:14 PM, Marco Behnke ma...@behnke.biz wrote: Am 29.04.2012 22:31, schrieb Terry Ally (Gmail): Hi all, I have been using a mailto() script for the last three years and from April 25, 2012 incoming HTML email in Goggle mail is displaying as Plain Text. Something clearly changed with Google. Perhaps there is some change I need to make with my script?? $message .= pbMessage:/b**blockquote .$m./blockquote/p; As far as I can see your main html tags are missing? $message = 'htmlbody' . $message . '/body/html'; -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- Gerardo Benitez - Programador Web Freelance
Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text
Hi all, This question is now closed. There is nothing wrong with my script. It was an error by Google when they switched over to the new-look email and have since rectified the issue and all is back to normal. Thanks to all who have responded. Terry On 3 May 2012 21:05, Gerardo Benitez gerardobeni...@gmail.com wrote: Do you know if the mailto script allow set headers? Probably you must set a html header, something like this $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; Regards, Gerardo. On Tue, May 1, 2012 at 5:14 PM, Marco Behnke ma...@behnke.biz wrote: Am 29.04.2012 22:31, schrieb Terry Ally (Gmail): Hi all, I have been using a mailto() script for the last three years and from April 25, 2012 incoming HTML email in Goggle mail is displaying as Plain Text. Something clearly changed with Google. Perhaps there is some change I need to make with my script?? $message .= pbMessage:/b**blockquote .$m./blockquote/p; As far as I can see your main html tags are missing? $message = 'htmlbody' . $message . '/body/html'; -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- Gerardo Benitez - Programador Web Freelance -- *Terry Ally* Twitter.com/terryally Facebook.com/terryally ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ To print or not to print this email is the environmentally-searching question! Which has the highest ecological cost? A sheet of paper or constantly switching on your computer and connecting to the Internet to read your email?
Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text
Am 29.04.2012 22:31, schrieb Terry Ally (Gmail): Hi all, I have been using a mailto() script for the last three years and from April 25, 2012 incoming HTML email in Goggle mail is displaying as Plain Text. Something clearly changed with Google. Perhaps there is some change I need to make with my script?? $message .= pbMessage:/bblockquote .$m./blockquote/p; As far as I can see your main html tags are missing? $message = 'htmlbody' . $message . '/body/html'; -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz smime.p7s Description: S/MIME Kryptografische Unterschrift
[PHP] PHP Mailto() - Google now displaying HTML as Plain Text
Hi all, I have been using a mailto() script for the last three years and from April 25, 2012 incoming HTML email in Goggle mail is displaying as Plain Text. Something clearly changed with Google. Perhaps there is some change I need to make with my script?? // First set up some variables for recipient, subject, and date/time received $to = $sendto; // Recipient $subject = Message received via XX website; // Subject $oh = (int) date (Z) / 3600; // time offset to GMT $date = date(d M Y g:i:s a , mktime (date (H) - $oh)). GMT; // Date and time in the form -mm-dd hh:mm:ss // Set up conditionals for optional fields $addr1 = $_POST['addr1']; $addr2 = $_POST['addr2']; $city = $_POST['city']; $country = $_POST['country']; $postalcode = $_POST['postalcode']; // Compose body of email $message = pFollowing is a message received for .$recipient. sent via XX website on .$date./p; $message .= pbFrom:/b .$n. (.$email.)/p; if (($addr1) (! $addr2)) { $message .= pbAddress:/b .$addr1./p; } elseif (($addr1) ($addr2)) { $message .= pbAddress:/b .$addr1., .$addr2./p; } else { $message .= pbAddress:/b None provided/p;} if ($city) { $message .= pbCity:/b .$city./p; } else { } if (($country) (! $postalcode)) { $message .= pbCountry:/b .$country./p; } elseif($country $postalcode) { $message .= pbCountry:/b .$country. .$postalcode./p; } else { } $message .= pbMessage:/bblockquote .$m./blockquote/p; // To send HTML mail, the Content-type header must be set $headers = 'From: '.$n.''.$email . \r\n ; $headers .= 'Reply-To: '.$email . \r\n; $headers .= 'cc: XXX ' . \r\n; $headers .= 'Bcc: XXX ' . \r\n; // Additional headers $headers .= 'MIME-Version: 1.0' . \r\n; $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; $headers .= 'X-Mailer: PHP/' . phpversion(); // send email mail($to, $subject, $message, $headers); Thanks -- *Terry Ally*