OM2 Posted July 29, 2009 Share Posted July 29, 2009 Is there an alternative to mail()? My client has Windows hosting and mail() does not work Is there an alternative? I tried googling and the only thing I found relevant is: socket_mail() URL: http://www.justin-cook.com/wp/2006/03/14/php-socket_mail-an-alternative-to-mail/ Is this something that will work OK on Windows hosting? Thanks OM Quote Link to comment https://forums.phpfreaks.com/topic/167937-alternative-to-mail/ Share on other sites More sharing options...
zq29 Posted July 29, 2009 Share Posted July 29, 2009 You could ask your client to ask their host to configure their server properly... Alternatively, you could use the IMAP functions. Quote Link to comment https://forums.phpfreaks.com/topic/167937-alternative-to-mail/#findComment-885769 Share on other sites More sharing options...
ignace Posted July 29, 2009 Share Posted July 29, 2009 You are looking for this: http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html Quote Link to comment https://forums.phpfreaks.com/topic/167937-alternative-to-mail/#findComment-885782 Share on other sites More sharing options...
patrickmvi Posted July 29, 2009 Share Posted July 29, 2009 PHPMailer has an SMTP mode to it which you should be able to configure to use whatever your hosting environment's SMTP server is. This would bypass the mail() function. You can get PHPMailer here: http://sourceforge.net/projects/phpmailer/ Quote Link to comment https://forums.phpfreaks.com/topic/167937-alternative-to-mail/#findComment-885812 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.