Re: Working with overly aggressive anti-spam measures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave M G wrote:
PHP List,

I run a few various social groups, and with each one I keep in contact with members by emailing them short newsletters.

All my user information is stored in a MySQL database. I use PHP to get the relevant contact information, and use the mail() command to send out the emails one by one, so that each email is a little personalized.

I've used this system for many years now with no problems up until now.

What has changed, though, is that in recent years, anti-spam measures have become so aggressive that more and more people who sign up to my groups complain that they never receive the emails.

A lot of the times, after they alert me to the issue, I can educate them a little about the anti-spam measures they most likely have on their system, and walk them through how to make it so that my newsletters go through.

However, that is clearly not enough.

To shorten a story that has already gone on a little long, it's come to my attention that part of the reason that my emails may not be getting through are because the headers are not sufficiently legitimate looking enough to bypass some server side anti-spam measures. Things like "Return-Path" are being set so that they look like they come from an email address that begins with the username "nobody".

mail($email, $subject, $mailContent, $fromAddress);

You need to set the 5th parameter to change who it comes from (instead of "nobody"). See php.net/mail for more info.


You can't change that parameter if safe-mode is on for the server or if exim doesn't have the webserver user as a 'trusted-user' (I think only exim is affected by this particular issue).

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux