mail function and yahoo's bulk problem Please help

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 function and yahoo's bulk problem Please help

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);
?>
 
 
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

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

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

Post by hannnndy »

have you any ida how to use it? i mean how to write a real working code?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

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

Post 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/
Post Reply