get Mail through Yahoo filters to Inbox

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ninethousandfeet
Forum Contributor
Posts: 130
Joined: Tue Mar 10, 2009 4:56 pm

get Mail through Yahoo filters to Inbox

Post by ninethousandfeet »

hello,
i am trying very hard to get my simple mail script to go through yahoo's mail filters and i haven't had any luck. i have been in contact with yahoo and they confirm i am on the white list and they have made their filters as lenient as they can for my IP and mail server... and my mail still goes to the yahoo spam folder.
here is my mail script, this particular script is sent when a new comment is posted. all users involved in the conversation receive a very simple email that says hey go check your account. any suggestions on how i can alter my script to get it past yahoo's spam filters and straight to the inbox every time?
thank you!

Code: Select all

 
do {
$username = $row_getALLemails['username'];
 
if ($_SESSION['MM_Username'] == $username) {
    continue;
}
$comment = $row_getALLemails['comment_title'];
$to = $row_getALLemails['email'];
$subject = "New Comment!";
$headers  = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
$headers .= "From: my company <me@mysite.com>" . "\r\n";
$headers .= "Reply-To: my company <me@mysite.com>" . "\r\n";
$headers .= "X-Priority: 1\n";
$message = "<html>
<head>
<title>me@mysite.com</title>
</head>
<body>
Hello, $username!<br /><br />The new comment is in the following conversation:<br />*** $comment<br /><br />Login. Chat. Share.<br />http://www.mysite.com<br /><br />About mySite:<br />We are good.<br /><br />-- Please contact us via the website if you have any questions or concerns --<br />-- If you cannot login, please send us an email at contact@mysite.com --
</body>
</html>";
mail($to, $subject, $message, $headers);
} while ($row_getALLemails = mysql_fetch_assoc($getALLemails)); 
 
Last edited by Benjamin on Fri May 08, 2009 2:22 pm, edited 1 time in total.
Reason: Changed code type from text to php.
Post Reply