$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .= "From: $sender_email\r\n";
mail("$rcpt_email", "$subject", "$msg", $header);
This works it is what I use.
-----Original Message-----
From: Mike Dunlop [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 2:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Dynamic HTML Email
Hello,
I am wondering how it would be possible to generate an html response
email via a PHP script. I have tried and all that has happened is the
html source code appears in the message body as plain text. I believe
this is happening because the email needs an additional header
stating the email needs to be parsed as html not plain text (or both).
I am using the mail command.
Can someone shed some light on the subject for me???
Thanks so much in advance!
Mike Dunlop
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php