View Single Post
Old 2004-01-19, 01:50 AM   #1
Flickstah
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Dec 2003
Location: Anaheim, CA
Posts: 35
Send a message via AIM to Flickstah
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<flick@naughtyholly.com>\nX-Mailer: PHP/" . phpversion());

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
Flickstah is offline   Reply With Quote