Skip to content

Instantly share code, notes, and snippets.

@Nosfheratu
Created December 15, 2014 10:03
Show Gist options
  • Select an option

  • Save Nosfheratu/385995329a93510e380b to your computer and use it in GitHub Desktop.

Select an option

Save Nosfheratu/385995329a93510e380b to your computer and use it in GitHub Desktop.
action_mailer settings for gmail
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "localhost:3000",
authentication: "plain",
enable_starttls_auto: true,
user_name: "my-gmail-user",
password: "my-gmail-pass"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment