News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SeeIT Consult Blog:
PHP mail() with Ubuntu Desktop and Gmail
August 27, 2010 @ 08:57:20

In this new post to the SeeIT Consult blog they show you how to use the Google Mail STMP service to send emails directly from PHP - no local MTA required.

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.

Their solution uses the ssmtp tool instead - a simpler MTA that doesn't require near the setup of others. They show you how to adjust the config to handle the PHP emails, set up some users and configure PHP (the sendmail_path in the php.ini) to push the emails through it. Because of the configuration changes, it then knows enough to push those emails out to Gmail's SMTP.

0 comments voice your opinion now!
gmail smtp tutorial ssmtp mta email


blog comments powered by Disqus

Similar Posts

Juozas Kaziukenas' Blog: Scraping login requiring websites with cURL

PHPMaster.com: Under the Hood of Yii's Component Architecture, Part 3

Padraic Brady's Blog: Zend Framework Blog App Tutorial - Addendum #2: Revised Design, Date Helper

DevShed: Object-Oriented Programming Through Design Patterns

PHPBuilder.com: Use PHPUnit to Implement Unit Testing in Your PHP Development


Community Events

Don't see your event here?
Let us know!


conference introduction symfony2 performance configure opinion php7 application community api voicesoftheelephpant example language interview podcast laravel series framework part2 release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework