[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
RE: [PHP] Dynamic HTML Email
Mike Dunlop mailto:[EMAIL PROTECTED] scribbled; 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). You can try sending Content-Type: text/html\r\n to see if that helps, otehrwise the mail client may be set for text-only. -jesse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Dynamic HTML Email
Try this class: http://phpclasses.websapp.com/browse.html/package/9.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Mike Dunlop [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 4: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
RE: [PHP] Dynamic HTML Email
$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