djbuddhi Posted February 20, 2009 Share Posted February 20, 2009 what is the best email class.i have used phpemaliler class but unable to send emails to hotmail and yahoo accounts ... is there any specific class available for this ? Quote Link to comment https://forums.phpfreaks.com/topic/146070-php-email-class/ Share on other sites More sharing options...
Q695 Posted February 20, 2009 Share Posted February 20, 2009 <?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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/146070-php-email-class/#findComment-766813 Share on other sites More sharing options...
JonnoTheDev Posted February 20, 2009 Share Posted February 20, 2009 unable to send emails to hotmail and yahoo accounts This has nothing to do with the mail function. It will probably be reverse DNS on your mailserver or something. Yahoo / Hotmail may reject your messages because the hostname of your mailserver cannot be resolved from it's IP address. Quote Link to comment https://forums.phpfreaks.com/topic/146070-php-email-class/#findComment-766938 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.