How do I get wordpress to work with gmail?

Hey guys, I’ve tried countless tutorials so far with no success. I’m trying to understand how this all works. I have 2 domains. First domain(hosted outside DO) uses google apps to send and receive emails and the other one(hosted on DO) does not have any emails.

On my other host I have all MX correctly filled and everything is working as expected when sending or receiving emails.

On DO, this new domain will host a wordpress blog and I want it to use the to send or receive emails. ( I don’t want to pay extra $5 to google just for the blog). I don’t know if this structure is doable or not.

Anyway, if it is doable? How should I configure my mx records and stuff?

From what I gathered from other topics, I need something called sendmail? Other tutorials assume this is installed by default but I’m running ubuntu 14.04 and I don’t have it installed.

Any tutorials for a completely email config dumb person?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Hello all,

What I could suggest here is using an SMTP plugin for your WordPress site.

That way you will be able to specify an SMTP server with authentication which your emails would be going through. You could for example use Gmail’s SMTP settings. This would drastically increase the delivery rate of your emails as well compared to using plain PHP mail.

I’ve been using this plugin for a while now and it works very well: Easy WP SMTP

Hope that this helps! Regards, Alex

Hi Fernando,

If your WordPress app sends less than 400 emails a day, rather than using Gmail you could use SendGrid’s free plan to send all of the emails. SendGrid even has a WordPress plugin. Here’s a tutorial for configuring WordPress to send email through SendGrid.