PHP mail() with Ubuntu Desktop and Gmail
Recently I was adapting a newsletter plugin for Wordpress and needed the PHP mail() function for testing. However an Ubuntu desktop install is missing Sendmail – the MTA that PHP expects to find on a Linux PC.
I use a local Apache/MySQL server on a laptop to do a lot of my development – I don’t need a full mail server just to send mail.
Also SMTP servers on dynamically assigned IP addresses are so untrusted these days that you can be pretty much guaranteed that a decent spam filter will reject your email based on a RBL lookup. By using Google Mail’s authenticated SMTP service you bypass this restriction.
The lightweight solution is ssmtp.
Continue reading ‘PHP mail() with Ubuntu Desktop and Gmail’ »