Page 1 of 1

mail function and yahoo's bulk problem Please help

Posted: Wed Jan 16, 2008 2:18 am
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);
?>
 
 

Re: mail function and yahoo's bulk problem Please help

Posted: Wed Jan 16, 2008 2:36 am
by Chris Corbyn
Very difficult to get right using mail().

Try this: http://www.swiftmailer.org/

There's a forum for support with it here (down the bottom, called "Swift Mailer").

Re: mail function and yahoo's bulk problem Please help

Posted: Wed Jan 16, 2008 6:36 am
by hannnndy
have you any ida how to use it? i mean how to write a real working code?

Re: mail function and yahoo's bulk problem Please help

Posted: Wed Jan 16, 2008 6:43 am
by Kieran Huggins
lol - I *think* Chris may have used it once or twice...

There's documentation with examples here: http://www.swiftmailer.org/wikidocs/