You are here: Why cannot send the MIME html e-mail to gmail? « PHP Programming Language « IT news, forums, messages
Why cannot send the MIME html e-mail to gmail?

Posted by stam on 04/25/06 11:58

hello guys, i have met a problem that i can send the html e-mail by
using MIME via php to yahoo mail and hotmail, but when i was try to
send to gmail, it show all the html coding.
can someone help me to solve this kind of problem? thank you


the coding i made----->:

<?php
$a=<<<A
<form action="" method="post">
<input type="submit" name="submit" value="submit">
</form>
A;
echo $a;
if(isset($_POST['submit']))
{
$to = 'stam1982@gmail.com,stam_1982@yahoo.com';

$subject = 'Testing';

$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body bgcolor="gray">
<p>MIME email!</p>
</body>
</html>
';

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

$headers .= 'From: ck <stam_1982@yahoo.com>' . "\r\n";

mail($to, $subject, $message, $headers);
echo "Email had been sent!";
}
?>

your kindly help is important to me! ^_^

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация