Report this

What is the reason for this report?

How do I get my php contact form to work with Gsuite?

Posted on August 3, 2017

I am using Gsuite for email on my VPS. It is configured properly and works for sending and receiving emails except when I use the PHP form (again, setup properly). The functionality of the form itself works so I’m certain it’s something to do with the mail servers. The form submission emails aren’t being sent at all, not to any email address I use. How can I get this working? I know it has to do with PHP/mail servers/Gsuite but I don’t know beyond that.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Here is what the error logs say: http://i.imgur.com/OKYwpi9.png

Hi @cjoel

Without seeing any error logs, then it’s difficult to tell what’s going on, but a lot of new DigitalOcean accounts has SMTP blocked to prevent them from being used as spammers. Run this command to check if you’re being blocked from reaching Google’s SMTP:

telnet aspmx.l.google.com 25

If you cannot connect, then you need to create a ticket with Support in the control panel and ask to un-block SMTP.

I’m using the G Suite via MX entries and Exim mail server is that is what you mean?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.