2

I have decided to swtich from the php mail() class to phpMailer. I have also moved my email address to Google Apps.

I have been looking at the PHPMailer examples http://phpmailer.worxware.com/index.php?pg=examples but none specify the setup with Google Apps.

I've tried this too (but it uses Gmail NOT Google Apps) : Can't send an email using a google apps account with PHPMailer

Has anyone acheived this ?

Community
  • 1
  • 1
mlishn
  • 1,689
  • 14
  • 19

1 Answers1

2

Using Gmail and Google Apps as mail host is similar. The answer in Can't send an email using a google apps account with PHPMailer demonstrates how you use Google Apps with PHPMailer. Check this page : GMail and Google Apps as outgoing mail server (SMTP).

Community
  • 1
  • 1
Czar Pino
  • 6,258
  • 6
  • 35
  • 60
  • i am trying to use google apps with phpmailer (not gmail) are there certain configurations that need to be made in google apps for this to work? – mlishn Aug 03 '12 at 14:27
  • the defaults in google apps should work just fine. the only difference in usage with gmail is the username which is `username@gmail.com` while it would be `username@yourdomain.com` for google apps. – Czar Pino Aug 03 '12 at 14:34
  • Seemed like the key was to add the SMTP settings and Google account creds. Kudos for the help! – Fillip Peyton Jul 26 '15 at 05:26