Re: php formatted html shows up in Yahoo mail but not gmail
- From: Benjamin <musiccomposition@xxxxxxxxx>
- Date: 29 Apr 2007 18:45:27 -0700
On Apr 29, 8:31 pm, cybervigilante <cybervigila...@xxxxxxxxx> wrote:
I sent HTML formatted email, using PHP, to my Yahoo address from myIn order to reduce confusion, Gmail may display HTML in plain text.
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?
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>
.
- References:
- php formatted html shows up in Yahoo mail but not gmail
- From: cybervigilante
- php formatted html shows up in Yahoo mail but not gmail
- Prev by Date: Re: form processing technique
- Next by Date: Re: php formatted html shows up in Yahoo mail but not gmail
- Previous by thread: php formatted html shows up in Yahoo mail but not gmail
- Next by thread: Re: php formatted html shows up in Yahoo mail but not gmail
- Index(es):
Relevant Pages
|