mail problem with yahoo

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
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

mail problem with yahoo

Post by hannnndy »

hi friends,

Recently I have a grate problem with yahoo mail I'm using the following code to mail to my sites member bud my mails go to the bulk of the yahoo I want to know how to solve my problem
I just want my mails to go to the inbox of the users mention that I'm not a spammer

Code: Select all

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
 
mail($to, $subject, $message, $headers);
?>
devendra-m
Forum Contributor
Posts: 111
Joined: Wed Sep 12, 2007 3:16 am

Re: mail problem with yahoo

Post by devendra-m »

I think its because of smtp connection problem
User avatar
hannnndy
Forum Contributor
Posts: 131
Joined: Sat Jan 12, 2008 2:09 am
Location: Iran>Tehran
Contact:

Re: mail problem with yahoo

Post by hannnndy »

have you any idea to solve this problem?
using IMAP classes or something like that

thanks
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: mail problem with yahoo

Post by Kieran Huggins »

I think swiftmailer has the spam issue fairly well sorted, if I'm not mistaken.
Post Reply