Re: php formatted html shows up in Yahoo mail but not gmail



On Apr 29, 8:31 pm, cybervigilante <cybervigila...@xxxxxxxxx> wrote:
I sent HTML formatted email, using PHP, to my Yahoo address from my
server, and it came out fine, styles and all. I sent it to my gmail
address to test it and all I see is the raw html code. But I do get
formatted email in gmail, so I know people make it work somehow. I'm
looking right at a gmail message that I copied to Dreamweaver and it's
using Strong and Red text attributes that work in gmail. But mine
don't.

What do you do different in gmail to get formatted HTML email?
In order to reduce confusion, Gmail may display HTML in plain text.

Here is my PHP code, which Does receive correctly, with color and
formatting, in Yahoo mail, but not gmail.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>PHP Guestbook</title>
</head>
<body>

<h1>mailtest</h1>

<?php

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$msg = "<h2 style='color:red; background-color: Fuchsia; border: thick
dotted; border-color: Blue; font-family: sans-serif; font-style:
italic; margin-left: 20%; padding: 20; margin-right: 30%;'>Test of
formatted email from <br>Just Health Now server, with html headers</
h2>";
echo ($msg);

mail("sere...@xxxxxxxxx","no damn color",$msg,$headers);

?>

</body>
</html>


.



Relevant Pages

  • Re: f10dvd installs but wont boot
    ... Could someone who knows how to disable HTML gmail postings write a FAQ ... Immediately above the Gmail text entry window there is a formatting ... clickable "Rich Formatting" button that toggles it back on). ...
    (Fedora)
  • Re: f10dvd installs but wont boot
    ... Could someone who knows how to disable HTML gmail postings write a FAQ ... Immediately above the Gmail text entry window there is a formatting ... clickable "Rich Formatting" button that toggles it back on). ...
    (Fedora)
  • Re: f10dvd installs but wont boot
    ... Could someone who knows how to disable HTML gmail postings write a FAQ ... Immediately above the Gmail text entry window there is a formatting ... clickable "Rich Formatting" button that toggles it back on). ...
    (Fedora)
  • Re: HTLM Formatting Lost When Forwarding
    ... Right now, when I forward a nicely formatted html email, it ... strips out a lot of the nice formatting, photos, tables, etc. ... It appears that the web interface to Gmail does not provide a way to view ... Viewing it via a true mail reader (such as Entourage ...
    (microsoft.public.mac.office.entourage)
  • Re: f10dvd installs but wont boot
    ... Could someone who knows how to disable HTML gmail postings write a FAQ ... Immediately above the Gmail text entry window there is a formatting ... clickable "Rich Formatting" button that toggles it back on). ...
    (Fedora)