Rails has a nifty feature in ActionMailer to allow you to send emails form your rails app. Recently I have been creating a two-sided marketplace for my Bootcamp course and one of the criteria is to send transactional emails. In this post i hope to shed some light on the process of sending transactional emails using rails.
One useful step is to go into your development.rb file and change the below line from falseto true. By default rails will silently ignore any errors related to sending email which isnt very helful. Seeting this to true will help us identify any errors when sending transactional email.
https://gist.github.com/d4f5ca6070cef0ccef27a6af12846d87
First we need to arrange things so our emails are delivered out into the world using an smtp server. I used my gmail account. At the bottom of development.rb file copy and past this code here: