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.