note 89797 added to function.mail

From: Date: Mon, 23 Mar 2009 22:34:55 +0000
Subject: note 89797 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-152351@lists.php.net to get a copy of this message
I couldn't send a HTML messege, It's appears as normal text only even i used this code: <?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <html> <head> <title>HTML email</title> </head> <body> <p>This email contains HTML Tags!</p> <table> <tr> <th>Firstname</th> <th>Lastname</th> </tr> <tr> <td>John</td> <td>Doe</td> </tr> </table> </body> </html> "; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // More headers $headers .= 'From: <webmaster@example.com>' . "\r\n"; $headers .= 'Cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 41.252.61.227 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/89797 Del: integrated -- https://master.php.net/note/delete/89797/integrated Del: useless -- https://master.php.net/note/delete/89797/useless Del: bad code -- https://master.php.net/note/delete/89797/bad+code Del: spam -- https://master.php.net/note/delete/89797/spam Del: non-english -- https://master.php.net/note/delete/89797/non-english Del: in docs -- https://master.php.net/note/delete/89797/in+docs Del: other reasons-- https://master.php.net/note/delete/89797 Reject -- https://master.php.net/note/reject/89797 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152351) next »