PDA

View Full Version : mail goes to spam folder for yahoo



aminulsumon
04-21-2009, 09:52 AM
last 2 days i have spent couple of hours to resolve an issue of mail sending. here is my code of php


$subject = 'Birthday Reminders for August';

// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
$subject = 'Birthday Reminders for August';
$to = 'aminulsumon@yahoo.com';
$headers='MIME-Version: 1.0'."\r\n";
$headers.='Content-type: text/html; charset=iso-8859-1'."\r\n";
$headers.='To: Aminul <aminulsumon@yahoo.com>'."\r\n";
$headers.='From: Shopno dinga <webmaster@shopno-dinga.com>'."\r\n";
mail($to, $subject, $message, $headers);

my script doesn't show any error. it's able to send mail to gmail and hotmail inbox. but only for yahoo it goes spam folder. i don't think that, it's an issue of yahoo.

Please note that, webmaster@shopno-dinga.com email address is created through cpanel.

any help is highly appreciated.

Treeluvin
04-26-2009, 03:09 AM
Sounds like something Yahoo is doing if it works fine everywhere else. The mailserver sending the mail (ie bluehost) doesn't get to choose how/where it is delivered once it is handed off.

deeps.chennai
06-14-2009, 12:19 AM
Hi,

You need to have your host add a reverse dns entry for the IP address to map to your domain name.

Further, you need to goto openspf.org and setup an entry for your domain name. Openspf then provides a set of DNS entries which you need to add to your domain's dns settings.

Good luck!

[dEEPS]

Early Out
06-14-2009, 12:43 AM
The BH mail servers all have reverse DNS entries already - without that, email from BH subscribers wouldn't be accepted at most ISPs or hosts. It certainly wouldn't cause messages to land in a spam folder - if the BH mail servers didn't have reverse DNS entries set up, they probably wouldn't be able to connect to the Yahoo mail servers at all.

Note that the reverse DNS entry resolves to the server name, not to your own domain name.

BH has already set up SPF records. Also, as far as I know, Yahoo does not use SPF. And if both of these statements were not true (i.e., BH didn't use it, but Yahoo was looking for it), that would cause the mail to be bounced back, not to be identified as spam.

Knowledgebase article on the subject: http://helpdesk.bluehost.com/kb/index.php/kb/article/000040