Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active January 5, 2023 22:29
Show Gist options
  • Save DevGW/1411213c52dcddada4ca0884043fedce to your computer and use it in GitHub Desktop.
Save DevGW/1411213c52dcddada4ca0884043fedce to your computer and use it in GitHub Desktop.
Ruby / Rails :: devise mailer setttings #RoR
config.action_controller.allow_forgery_protection = false
config.action_mailer.default_url_options = { :host => 'DOMAIN.COM' }
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:authentication => :login,
:user_name => "USER@DOMAIN.COM",
:password => "PASSWORD",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment