TurnKey Linux Virtual Appliance Library

Send Mail via GMail SMTP from within PHP

hcotech's picture

Using the WP appliance and I have installed a PHP based app that supports sending email through an external SMTP host such as GMail.  Looks like they use a PEAR library to handle it.  

I have set all the proper settings according to the app but no mail seems to flow.


// These settings are only used with the "smtp" backend"
$smtp_settings['auth'] = TRUE;        // Whether to use SMTP authentication
$smtp_settings['host'] = 'ssl://smtp.gmail.com';  // SMTP server
$smtp_settings['port'] = 465;           // SMTP port number
$smtp_settings['username'] = 'user@google.com';       // Username (if using authentication)
$smtp_settings['password'] = 'password';       // Password (if using authentication)
Is there anything out of the box that might be preventing these emails from being sent?  SSL settings?  
Firewall ports do not appear to blocked in any way for outbound.  Any ideas where to look ?
thanks in advance,

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)