Rails SMTP configuration in runtime

SMTP is mail delivery method in rails  which is used to send email through rails. Setting of SMTP is configured in different environment like development, production and test. For this we configure following setting in different file like config/environments/development.rb, config/environments/production.rb, config/environments/test.rb with respect to different environment.  config.action_mailer.smtp_settings = { address: “smtp.gmail.com”, port: 587, domain: “mail.google.com”,…

Read more...