Open main menu

Changes

502 bytes added ,  23:30, 1 July 2015
add info about using PHPMailer in conjunction with Google's SMTP server
== HOWTO ==
=== My website needs a contact form ===
If you want to add email to your PHP application or website, then try use https://github.com/PHPMailer/PHPMailer (or many fine alternatives). Don't use PHP's mail function unless you are really going for basic messaging to yourself only. And, you can use Google's SMTP server to send so you don't have to get blocked and deal with all kinds of other crap. Make sure your server IP is not blacklisted or firewalled. Telnet to Google:<source lang="bash">telnet smtp.gmail.com 25# then ^] # get a telnet promptquit [enter]</source> Check your server IP with a tool like http://mxtoolbox.com/blacklists.aspx 
=== My wiki won't send email ===
4,558

edits