Z
Zpixel
Guest
i'm using the codes below to send a html mail in PHP:
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8";
$from=$sender;
$headers .= "To: {$from}\n";
$headers .= "From: {$from}\n";
mail($to, $subject, $message, $headers);
when i choose the message as this for example :
$message='<-table border="1" width="80%" id="table1">';
the yahoo mail service changes it like this :
<-table id="table1" width="& quot;80%& quot;" border="& quot;1& quot;">
or image like this :
<-img src="mhtml:mid://00000000/%22http://www.mydomain.com">
or removes some attributes. it is strange to me. i tried to eliminate qoutes but it didn't make it correct. all thing goes well in local host but google & yahoo are different!
how can i fix my programe's bug?
thanks.
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8";
$from=$sender;
$headers .= "To: {$from}\n";
$headers .= "From: {$from}\n";
mail($to, $subject, $message, $headers);
when i choose the message as this for example :
$message='<-table border="1" width="80%" id="table1">';
the yahoo mail service changes it like this :
<-table id="table1" width="& quot;80%& quot;" border="& quot;1& quot;">
or image like this :
<-img src="mhtml:mid://00000000/%22http://www.mydomain.com">
or removes some attributes. it is strange to me. i tried to eliminate qoutes but it didn't make it correct. all thing goes well in local host but google & yahoo are different!
how can i fix my programe's bug?
thanks.