Skip to content

Instantly share code, notes, and snippets.

@hernandezalek
Last active August 18, 2016 22:57
Show Gist options
  • Save hernandezalek/122a71e2b2567febe327c071d45ab33c to your computer and use it in GitHub Desktop.
Save hernandezalek/122a71e2b2567febe327c071d45ab33c to your computer and use it in GitHub Desktop.
SMTP Mailgun
config.action_mailer.default_url_options = { host: 'www.mi-domnio.com' }
ActionMailer::Base.smtp_settings = {
:port => 587,
:address => 'smtp.mailgun.org',
:user_name => 'postmaster@your.mailgun.domain',
:password => 'mailgun-smtp-password',
:domain => 'your.mailgun.domain',
:authentication => :plain,
}
ActionMailer::Base.delivery_method = :smtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment