SMTP Email with Google Apps for Business

Hi guys

Having trouble setting up my email with InvoicePlane.

I enter the details but get the following error when sending a test email to my account:

SMTP Error: Could not connect to SMTP host.
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/accounts/public_html/application/modules/mailer/helpers/phpmailer/class.phpmailer.php:586)

Filename: libraries/Session.php

Line Number: 688

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/accounts/public_html/application/modules/mailer/helpers/phpmailer/class.phpmailer.php:586)

Filename: helpers/url_helper.php

Line Number: 542

Im using SMTP not SendMail and PHPMail, not sure why I get an error relating to PHPMailer.

Please take a look at this thread as the solution was already posted: [Solved] Fresh install fails to send email via SMTP (Gmail)
If the solution does not work for you please continue the discussion there.

And the “Phpmailer” is our internal script that handles the connection over SMTP, mail() or Sendmail.