0
votes

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

1
This sounds a lot more suited to SuperUser instead of StackOverflow as you seem quite sure that this isn't the script itself. - Michael A
I think this is what you're looking for: stackoverflow.com/questions/712392/… - Dan Crews
Thanks @Dan, I've tried those settings but no joy. This is all configured in the software I'm using (WHMCS) which is pretty well-established so I'm sure it's more a problem with my environment rather than their software. I've tried to run the PHP script in your link above by itself and I get an error: Failed opening required 'Mail.php' (include_path='.;./includes;./pear'). Could it be that PHP Pear isn't installed on my server? I'm using a windows 7 server, PHP5. When I run phpinfo() it says: include_path .;./includes;./pear .;./includes;./pear - does this mean anything to you guys? - Dan

1 Answers

0
votes

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).