| 
	
 | 
 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] 
 |