afridy Posted June 24, 2006 Share Posted June 24, 2006 Hai !When i attempt to change the default font in the mail bodyit prints everythig as it is ..[code]$body=$body . "<font face=Tahoma size=14>Free softwares</font>\n";[/code] the output prints every thing as follows > <font face=Tahoma size=14>wel come to my website</font> I discovred that that problem may be in the Headers.the header in my mail is as follows.[code]$headers = "MIME-Version: 1.0\n";$headers = $headers . "Content-type: text/html";$headers= $headers . "charset=iso-8859-1\n";$headers= $headers . "Content-Transfer-Encoding: 7bit\n";$headers = $headers . "X-Priority: 3\n";$headers = $headers . "X-MSMail-Priority: Normal\n";$headers = $headers . "X-Mailer: php\n";$headers = $headers . "From: [email protected]\n";$headers = $headers . "Return-Path: [email protected]\n";[/code]If i place an "\n" at the end of 2nd line the font is really working as specified in <font> tag. but the mail body and header corrupts. out put in the mail is like >>charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: php From: [email protected] Return-Path: [email protected] Hello [email protected] this is an automated reply to your registration at ...................Please examin the header and give me a solution Link to comment https://forums.phpfreaks.com/topic/12793-font/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.