Page 1 of 1
Problem with e-mail sender
Posted: Mon May 22, 2006 2:44 am
by Phil_V
Hello every one i have made a simple PHP e-mail sender for users in our system. But there is a problem.
Every mail sent by our system is sent to their bulk folder.
How can i fix this. Please help.
10x in advance
Posted: Mon May 22, 2006 2:47 am
by shiznatix
check your headers and search this forum, this question has been answered many time before.
Posted: Mon May 22, 2006 2:48 am
by bdlang
Sounds like they have a spam filter that is filtering your messages based on a specific criteria. I suppose you need to find out why they're being blacklisted (could be the server/domain PHP is on, could be a specific header switch you are omitting, etc). Look at the message headers and find out what criteria the receiving server has for filtering messages. I wouldn't consider this a PHP issue.
Posted: Mon May 22, 2006 2:50 am
by Phil_V
shiznatix wrote:check your headers and search this forum, this question has been answered many time before.
10x, can some one give me a link?

Posted: Mon May 22, 2006 2:53 am
by Phil_V
bdlang wrote:Sounds like they have a spam filter that is filtering your messages based on a specific criteria. I suppose you need to find out why they're being blacklisted (could be the server/domain PHP is on, could be a specific header switch you are omitting, etc). Look at the message headers and find out what criteria the receiving server has for filtering messages. I wouldn't consider this a PHP issue.

it's not a PHP issue it's obviously mine

Posted: Mon May 22, 2006 5:13 am
by Phil_V
ok so i've checked the headers and made them like on the ones when you recieve mails in yahoo mail. but still the message in received in bulk.
Please help me.
Posted: Mon May 22, 2006 5:58 am
by Chris Corbyn
Phil_V wrote:ok so i've checked the headers and made them like on the ones when you recieve mails in yahoo mail. but still the message in received in bulk.
Please help me.
If it's the server that you're:
a) Connecting to SMTP from
b) Sending SMTP from
that's been blacklisted then you're stuck buddy. Try sending from another server (your home PC?) and see if anything changes.
Posted: Mon May 22, 2006 5:59 am
by Chris Corbyn
Phil_V wrote:ok so i've checked the headers and made them like on the ones when you recieve mails in yahoo mail. but still the message in received in bulk.
Please help me.
Oh yes, and don't try to copy too much from Yahoo, faking EHLO lines and message ID's get's picked up in a flash by spam filters. You're welcome to see how I handle this in Swift (see siggy below).
Posted: Mon May 22, 2006 8:30 am
by Phil_V
so i could not do anything.here is my header if someone can edit it?
$headers = 'From: '.$my['admin_email'].'' . "\r\n";
$headers .= 'To: '.$email.'' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
@mail($email, 'subject', $text, $headers);
Posted: Mon May 22, 2006 9:15 am
by Chris Corbyn
Phil_V wrote:so i could not do anything.here is my header if someone can edit it?
$headers = 'From: '.$my['admin_email'].'' . "\r\n";
$headers .= 'To: '.$email.'' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
@mail($email, 'subject', $text, $headers);
There's nothing in there which would cause a spam blocker to reject it. It's most likely the host your on is blacklisted in the RBL's (Real Time Blacklists).
Things that would push a spam score up:
HTML only content types (use a mixed content type)
Blacklists
Forged headers
Forged EHLO/HELO (not applicable here)
Short messages (less than a sentence or so)
Lots of symbols in the subject line
Reference the pharmaceuticals, sex, porn, money
Sending mail from dynamic IP addresses
Posted: Mon May 22, 2006 9:18 am
by Phil_V
d11wtq wrote:Phil_V wrote:so i could not do anything.here is my header if someone can edit it?
$headers = 'From: '.$my['admin_email'].'' . "\r\n";
$headers .= 'To: '.$email.'' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
@mail($email, 'subject', $text, $headers);
There's nothing in there which would cause a spam blocker to reject it. It's most likely the host your on is blacklisted in the RBL's (Real Time Blacklists).
i've checked that too and the server is not blacklisted.
And i can't uderstand why the mail is going into bulk

Posted: Mon May 22, 2006 9:27 am
by Chris Corbyn
Phil_V wrote:d11wtq wrote:Phil_V wrote:so i could not do anything.here is my header if someone can edit it?
$headers = 'From: '.$my['admin_email'].'' . "\r\n";
$headers .= 'To: '.$email.'' . "\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
@mail($email, 'subject', $text, $headers);
There's nothing in there which would cause a spam blocker to reject it. It's most likely the host your on is blacklisted in the RBL's (Real Time Blacklists).
i've checked that too and the server is not blacklisted.
And i can't uderstand why the mail is going into bulk

Try using something other than mail() which seems to be a bit of a pitfall when it comes to being spam-blocked - phpMailer usually works well and I recently wrote one that supports plugins (see sig).