Problem with e-mail sender
Moderator: General Moderators
Problem with e-mail sender
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
Every mail sent by our system is sent to their bulk folder.
How can i fix this. Please help.
10x in advance
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.
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
If it's the server that you're: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.
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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).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.
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);
$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);
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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).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);
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
i've checked that too and the server is not blacklisted.d11wtq wrote: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).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);
And i can't uderstand why the mail is going into bulk
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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).Phil_V wrote:i've checked that too and the server is not blacklisted.d11wtq wrote: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).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);
And i can't uderstand why the mail is going into bulk![]()
![]()