RE: [PHP] Dynamic HTML Email
| From: | Fifield, Mike | Date: | Fri, 20 Sep 2002 21:02:04 +0000 |
| Subject: | RE: [PHP] Dynamic HTML Email | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117060@lists.php.net to get a copy of this message | ||
$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:webmaster@awn.com]
Sent: Friday, September 20, 2002 2:46 PM
To: php-general@lists.php.net
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