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.
$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.