Skip to content

Instantly share code, notes, and snippets.

@xirukitepe
Created August 12, 2013 06:02
Show Gist options
  • Save xirukitepe/6208549 to your computer and use it in GitHub Desktop.
Save xirukitepe/6208549 to your computer and use it in GitHub Desktop.
development_mailer.rb
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: 'gmail.com',
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment