![]() |
HTML emails from PHP script?
OK, I've been looking into this for the last few hours and still can't find the answer I'm looking for.
I want to send a rich html email from a php script that gets its list of recipients from an sql database. I have a script I bought and I'm modifying to send out html emails. The only info i can find is to use $headers = "Content-type: text/html\r\n"; then how it's called is... mail($email, $subject, $message, $headers, "From: Naughty Holly Webmaster but I keep getting errors with the $headers.... Is there any other way I can set the mime type or am I doing something wrong here?? Any help would be great! :) -fLIck |
|
I figured it out.. :)
ok so how I did it was...
$headers= "X-Priority: 1\n"; $headers.= "Content-Type: text/html\n"; $headers.= "From: Naughty Holly Webmaster $headers.= "Return-Path: mail($email, $subject, $message, $headers, phpversion()); I had to include all those "$headers" and and move the "from" link up to a header call. It took an additional 3 hours or so to get that right after trying a bunch of other stuff, but I finally got it working :) Thanks for the reply cleo :) -fLIck |
All times are GMT -4. The time now is 04:31 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc