|
Posted by jerrygarciuh on 06/08/07 17:51
Anybody have good advice on dodging AOL's spam filters when mail()ing
from PHP?
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@".
$_SERVER['SERVER_NAME'].">\r\n";
$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 bounce3@gnosports.com");
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.
Any thoughts?
TIA!!
JG
[Back to original message]
|