A classic example of spam classification. I would suggest try using the following code.
$from="From:mysite@mysite.com\r\n";
$to=$email;
$subject="$user left you a Profile Comment";
$content=" $user has given you a new comment on your profile at mysite.Com
to view the comment click http://www.mysite.com";
if($content){
mail($to, $subject, $content,$from);
Why is it classified as spam? Well from what I can tell having a website in the subject would bump up the ranking and possibly making the content almost identical to the title. Also make sure the email from header is not from hotmail or yahoo as that will for sure bump up the ranking if sending to hotmail from hotmail for example. Hope that helps.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
They must have really tightened their filters so I'm guessing the following might work:
$from="From:mysite@mysite.com\r\n";
$to=$email;
//do not put .com or any other tld after sitename as it is just the name.
$subject="Profile comment on Sitename";
$content="User replied: $user
A user has given you a new comment on your profile.
To view the comment go to the below url.
http://www.mysite.com";
if($content){
mail($to, $subject, $content,$from);
Other than that the only thing I can think of is wording it so it has a fake unsubscribe link for the email bots to read.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
The php mail function works great for a contact page on your site that will send the email to your sites MX. However, when sending to other mail servers such as yahoo, gmail, hotmail... it's not reliable enough to trust. Why? Because the mail function doesn't have SMTP authentication. Use one of php's prebuilt libraries, such as class.phpmailer.php. I use it for a mailing list and have tested through Yahoo, Gmail, Hotmail, and several others. It also provides a way to send both a plain text and html version of the message.
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137