It’s a good experience for me. i have posted the problem elsewhere as well. let me copy and paste that one first. http://www.bluehostforum.com/showthread.php?p=68607#post68607
last 2 days i have spent couple of hours to resolve an issue of mail sending. here is my code of php
<?php
include_once('class.phpmailer.php');
$mail = new PHPMailer(); // defaults to using php "mail()"
$body = '
<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>
';
$body = eregi_replace("[\]",'',$body);
$mail->From = "webmaster@shopno-dinga.com";
$mail->FromName = "Shopno Dinga";
$mail->Subject = "PHPMailer Test Subject via mail()";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($body);
$mail->AddAddress("aminulsumon@yahoo.com", "hello faruk");
//$mail->AddAttachment("images/phpmailer.gif"); // attachment
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
?>
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.
I ask some friends to resolve it. Someone says, use @, some one say’s seems to him ok and one says, go google and search phpmailer(he is the busiest one
). however, i have tried to implement phpmailer one and i get success. It’s easy to implement. a very simple php class and set some value. that’s all.
phpmailer site: http://phpmailer.codeworxtech.com/
donwload link: http://sourceforge.net/project/showfiles.php?group_id=26031&package_id=252700 and click PHPMailer v2.3 for PHP5/6
$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);
And Still same result. Mail goes to spam folder for yahoo !!!
Well, lets analyze with this simple code
[code]
<?php
$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 Sir <aminulsumon@yahoo.com>' . "\r\n";
$headers .= 'From: Dinga <webmaster@shopno-dinga.com>' . "\r\n";
$headers .= 'Reply-To: webmaster@shopno-dinga.com' . "\r\n";
$message = 'very simple mail. only text no html currently.';
$subject = 'test mail from manktech';
if(mail($to, $subject, $message, $headers))
echo "mail goes to $to \r\n";
else
echo 'mail jai nai.';
?>
[/code]
Please note that, from some hosting(i think those are first class domain) this code is able to send yahoo recipient mail in their inbox but still not from my hosting(bluehsot)
Debugging Starts: First check whether your domain is blacklisted or not. Check through http://www.mxtoolbox.com/ site.
=>checked and try to fix many ways but still mail goes to spam for yahoo recipient.
Well, after couple of days, i get only person who is able to provide me proper explanation. Most of the professionals reply as, “It’s completely header issue. so try to fix that and it will work”. but when i request himself to change he failed. someone point his finger to use third party emailer but after implement when i knock them “Still it’s spam”. they have no proper explanation. i found less people who say “Sorry brother can’t understand what actually going on”. Well, only one friend reply the real fact. He said “Yes, yahoo have some additional filtering and that’s why mail from all domain are not accepted and goes spam. But google have an excellent service which will overcome spam issue.” here is his mail’s reply:
and finally i do a good RnD. simple few steps configuration. Most importantly, MX Entry configuration. keep in mind, it’s in your cpanel not at your domain control panel(by example, godaddy.com). Finally, i am able to create email account which is fully featured of gmail.
yes it’s surprising. exactly same outlooking and features(by example, google doc, calendar) of gmail.
Now i am able to access my email from https://www.google.com/a/cpanel/shopno-dinga.com using username :admin@shopno-dinga.com and password: something.
This tutorial may be helpful for someone who is interested to learn mail stuffs with proper explanation. And it’s really charming to get gmail features for your domain email accounts. Best of luck
Did you find the problem why it spammed? How can you protect spamming issue for bulk mailer stuff?
You will see new problem for google email hosting migration. You will not get emails from this site(shopno-dinga.com) using contact from or else
Did you find the problem why it spammed?
=> 2 reasons are there. first, godaddy server have some problem with my hosting. and second, yahoo have some additional filtering(what not exist in gmail or hotmail) for domains of godaddy and some other server. i confirm it by using the same script in four different server. all goes to spam except one.
How can you protect spamming issue for bulk mailer stuff?
=> i am not sure what exactly you mean but seems to me here is your answer i posted early: http://shopno-dinga.com/myblog/?p=124
You will not get emails from this site(shopno-dinga.com) using contact from or else
But you are wrong!! i test it and contact mail works without any problem. mail goes to admin@mydomain.com and i check contact mail from https://mail.google.com/a/mydomain.com
=> Excellent catch musa vi.
Nice looking blog you have, but if anyone needs to get back on Google Adsense or Adwords and you are blacklisted, try the Google Stealth eBook and get back online today. If you are blacklisted, limited, or suspended from Google, the Google Stealth eBook will help you get past all of that and get back on. Try them out!
Thanks for sharing
hehe.. I have own web hosting site but now I think I need to follow you
.