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 ? 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 = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> 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. Link to comment https://forums.phpfreaks.com/topic/146070-php-email-class/#findComment-766938 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.