Google Email as SMTP server for outgoing emails
I have a main domain of
I have setup Google Email on the base domain of mydomain.com and this is working fine receiving emails and sending emails via Google.
I am doing some dev work on the staging environment to send emails on a linux ubuntu servers using PHP and would want to use the already setup Google service from the base domain to send outgoing emails. Is this possible? or would I need to setup the google mail on the staging environment too..
We have referenced the email client setup information from Google to setup the details in the staging environment.
However we still are not able to connect to the server.
Thanks
Simon
4 Replies
If so then for the staging site install postfix/exim (check out
For the live site check out MSMTP (google it).
Thanks for your reply, I want to send emails from the staging site via linux, however instead of installing a mail client to my staging site I want to use the Google Email currently setup on the live environment.
Iam hoping that I don't need to install a mail client in staging to then change the settings once we deploy to code live where we hope to still send emails via our PHP code.
Thanks..