Sending Email is a non-skippable feature in any web application. Whenever a user signs up, you normally send a Confirmation or Welcome email. Also, whenever a user forgets his/her password, you send a recovery link to their email. Today, we will see how you setup Emails and configure Rails to send those emails in separate thread so that end-user won’t have to wait till you send email.
If you use
devise then it sends confirmation email upon successful sign-up. Keep in mind that, email settings like
SMTP creds have to be configured before hand.
development environment you can either use
SendGrid, etc or choose to capture Emails in
local machine using
mail-catcher or similar softwares. Today we will use MailCatcher