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.

Configure SMTP

In development environment you can either use Gmail, SendGrid, etc or choose to capture Emails in local machine using mail-catcher or similar softwares. Today we will use MailCatcher


Tags

TODO ReactJs  React  Ruby  Webpack  dev-server  setup  SPA  learn  single page app