How to override and customize Devise Mailers with Railsby@rmtwrk
11,308 reads
11,308 reads

How to override and customize Devise Mailers with Rails

by RMTWRK3mJanuary 21st, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

At RMTWRK we are building the world’s <a href="http://rmtwrk.com" target="_blank">largest remote only jobs board</a> to help match companies hiring remote or distributed teams with people who are looking for a more flexible work environment. As a result our rails app has two user types, Company Users, people doing the hiring and Individual Users, people wanting to be hired and we wanted to have separate confirmation emails for each user type. Additionally we wanted to use <a href="http://mailgun.com/" target="_blank">Mailgun</a>’s API for sending emails rather than through SMTP (more on this later), and lastly we wanted to use the amazing <a href="https://github.com/premailer/premailer" target="_blank">Premailer</a> gem to inline the CSS styles in our emails before sending.

People Mentioned

Mention Thumbnail
featured image - How to override and customize Devise Mailers with Rails
RMTWRK HackerNoon profile picture
RMTWRK

RMTWRK

@rmtwrk

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite