DEV Community

Cover image for Using Mailgun to Send Emails from your Website
ExpressionEngine for ExpressionEngine

Posted on • Originally published at u.expressionengine.com on

1

Using Mailgun to Send Emails from your Website

Mailgun’s SMTP Relay service is a quick an easy way to have ExpressionEngine transactional emails handled through a dedicated email provider. There’s just one tiny glitch you need to be aware of. The line ending setting needs to be changed from the default \n to \r\n. That’s it. Everything else is self-evident. But in case it’s not…

In your Mailgun account, go to the Overview for your domain. In my case, I just have their default sandbox domain. You’re going to select ‘SMTP’ as your mail option and the required settings, including username and password, will be revealed.

Go to your ‘Settings- Outgoing Email’ settings in your ExpressionEngine control panel and enter your Mailgun settings

Setting Value
Protocal SMTP
Newline Character \r\n
Server Address smtp.mailgun.org
Server Port 587
Connection Type STARTTLS

Save your settings and send a few test emails from the Communicate page.

--

Originally published by Robin Sowell at u.expressionengine.com

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
otismilburnn profile image
Otis Milburnn • Edited

Have you used other SMTP service providers like SMTPget or SendGrid?

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay