Rails and environment variables - Lesson Learned 5
Submitted by uday on October 28, 2020 - 3:46pmI was trying to send emails from my Rails app and I was NOT getting any success.
As per Rails documentation, I did everything I was supposed to do.
$rails generate mailer UserMailer
Then I created method inside UserMailer class /app/mailers/user_mailer.rb and built the email templates in folder /app/views/user_mailer folder.
Then I added code to invoke the user mailer with following code.