Easiest Way to Send Outgoing Email Only

January 9, 2017 476 views
Configuration Management CMS LEMP PHP Server Optimization Ubuntu 16.04

I am running a LEMP stack on a server. Setup is going well. I am running into a huge snag with email though. I don't want or need a fully featured email server. I just need emails that originate from Wordpress (PHP mail function) to actually send to their appropriate locations, regardless if it's the same domain or not.

Everything I'm finding on here is so fully featured. Am I missing an obvious solution that would work for me? Thanks you for your time.

3 Answers
jtittle January 9, 2017
Accepted Answer

@danfoote104227

If you don't need the full functionality of a mail server, or if you don't want to bother with the hassle (as running your own can be very time consuming depending on your mail load), services such as Mailgun and SendGrid exists to offload the burden by using an API.

Plugins for both exists for WordPress and work very well. When I was using WordPress, I used one or the other quite often.

SendGrid: https://wordpress.org/plugins/sendgrid-email-delivery-simplified/

MailGun: https://wordpress.org/plugins/mailgun/

You don't need a working knowledge of the API. The plugin will handle the API calls for you. All you'd need to do is install one of the plugins, sign up for one of the services, add an e-mail address for it to use and then enter the API details in to the plugin configuration.

This would be the best route to take unless you need a more detailed configuration or setup.

While the plugin won't handle it, it is possible to also work with Mailgun's API and send & receive e-mail. I've written test PHP scripts to connect, send, and receive using their API, so it is possible to use Mailgun to service pretty much all your needs as well.

You might want to look at https://wordpress.org/plugins/mailgun/, which is a plugin for http://www.mailgun.com/. mailgun will let you send 10,000 emails per month for free.

Gaurav

These are both perfect thank you! I now have a bit of research to do!

  • @danfoote104227

    If I had to suggest one over the other, I'd start with Mailgun and only if you really don't like how they're setup, move to SendGrid. There's nothing wrong with SendGrid, but I've always preferred Mailgun as it's really cut and dry, plus it's super-simple to validate your domain and then add X or XX number of e-mail addresses in seconds. You also have control over how those addresses behave.

    If you have any questions, or need help, feel free to ask.

Have another answer? Share your knowledge.