Do you have a question? Post it now! No Registration Necessary. Now with pictures!
June 8, 2007, 5:51 pm
rate this thread
We are having trouble with this code:
$fromEmail = 'aValidAddress@thisHostAccount.com';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: This Foundation <$fromEmail>\r\n";
$headers .= "Reply-To: This Foundation <$fromEmail>\r\n";
$headers .= "Return-Path: $fromEmail\r\n";
$headers .= "Message-ID: <".time()." TheSystem@".
$headers .= "X-Mailer: PHP v".phpversion()."\r\n";
mail($to, '$subject, $msg, $headers);
We had originally been sending bounces to a different Return-Path
address (see below) but simplified this after AOL flagged all the
emails as spam. Also the To field is being set like this
RealFirstName RealLastName <Address> and the message has a greeting
using the RealFirstName.
mail($to, '$subject, $msg, $headers, "-f firstname.lastname@example.org");
The message is not spam, it is a thank you mail we are sending one at
a time to 4500 volunteers who helped with a Bowl Game in New Orleans.