Month: October 2013

PEAR Mail with Google Business Apps SMTP

If you are using PEAR Mail with Google Business Apps SMTP and are running into connection timeout errors, with the following configuration: $smtp = Mail::factory(‘smtp’, array (‘host’ => $host, ‘port’ => ‘465’, ‘auth’ => true, ‘username’ => $username, ‘password’ => $password)); Try changing the port to 587 (Port for TLS/STARTTLS)