have a try this. <?php $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=BIG5\r\n"; //$to = "yongqiang.yuan@xxxxxxxxxx" . ", " ; // note the comma $to .= "strongkill@xxxxxxxxxxxx"; $subject = "html"; $fp=fopen("http://www.strongd.net/newlatter/mail.html",r); while (!feof($fp)) { $str.=fread($fp,1024); } fclose($fp); mail($to,$subject,$str,$headers); ?> --- In php-objects@xxxxxxxxxxxxxxx, "Anuradika" <anuradika80@xxxx> wrote: > > Hi guys, I have been seding mail using php with html format. It works > fine in my office IIS server, but when i upload it to the web server, > it doesnt seem to be sending a HTML format mail, but rather the html > code itself. > > $headers = "MIME-Version: 1.0\r"; > $headers .= "Content-type: text/html; charset=iso-8859-1\r"; > $txt_Msg = "<LINK href='http://www.hotmail.com/include/styles.css' > type=text/css rel=stylesheet>"; > $txt_Msg = $txt_Msg . "<body topmargin=3 bottommargin=3 leftmargin=0 > rightmargin=0>"; > $txt_Msg = $txt_Msg . "<table width='600' border='0' align='center' > cellpadding='0' cellspacing='0'>"; > > so when i display the $txt_Msg, it works well, as in the table is > shown nicely, when in the mail, the code is being displayed instead of > the GUI. > Please help PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/