You are here: PHP mail() and AOL Spam Filter « PHP Programming Language « IT news, forums, messages
PHP mail() and AOL Spam Filter

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация