Search code examples
smtpgmail

Settings for sending email with PHP using GMail SMTP server for my domain


I run my business email through Google Mail, using my own domain (i.e. my email address is '[email protected]'). I've recently set up a support forum on my website which needs to send emails from the site admin via a PHP script. However, none of the settings I've tried seem to work. I thought these would work but they don't:

SMTP server: smtp.mydomain.com
SMTP username: [email protected]
Password: test123

I've also tried setting up a different email account on my domain on the server and using the server IP and settings for this different account but I can't get this working either.

Can anyone suggest how to get this working? Do I need to use Google's own SMTP settings as opposed to those for my domain?

I don't know much about this so apologies if it's a dumb question - I've tried searching but can only find examples where people are actually using GMail as their email account rather than their own domain.

Thanks


Solution

  • This turned out to be an issue with WHMCS, which they have apparently since resolved (although it was a show-stopper for me at the time so I wasn't able to see the resolution through).