|
Posted by Tobierre on 10/18/05 23:35
Hi Zoe,
Sorry to see that your simple request for help has turned in to a pissing
match by others...
Both HTML and Plain Text mail have their strong points and seeing as 95% of
most mail viewers can cope with either, it's left down to the individual
users preferences, as to which they wish to receive.
From my own experience of sending a quarterly newsletter to 20000
subscribers only 1,500 have chosen the plain text version!!! Down from
about 4000 a couple of years ago.
Try the following snip it below it works for me...
$Recipient = "Test Message <YourEmail@YourDomain.com>";
$Subject = "Test HTML Message";
$Message = "<HTML><STRONG style=\"background: #FFFD33; font-size:
large;\">This is a test message to see if HTML sending
works!</STRONG></HTML> \n";
$Headers = "FROM: Test Message <YourEmail@YourDomain.com>\r\n";
$Headers .= "Reply-To: Test Message <YourEmail@YourDomain.com>\r\n";
$Headers .= "Return-Path: Test Message <YourEmail@YourDomain.com>\r\n";
$Headers .= "X-Priority: 1\r\n"; //1 is important 3 is normal
$Headers .= "X-MSMail-Priority: High\r\n";
$Headers .= "X-Sender: Test Message <YourEmail@YourDomain.com>\r\n";
$Headers .= 'X-Mailer: PHP/' . "phpversion()\r\n";
$Headers .= "MIME-Version: 1.0\r\n";
$Headers .= "Content-Type: text/html; charset=iso-8859-1 \r \n";
$Headers .= "Content-Transfer-Encoding: 8bit\r\n";
mail("$Recipient, $Subject, $Message, $Headers");
[Back to original message]
|