Skip to content

Instantly share code, notes, and snippets.

@thehungrycoder
Last active October 27, 2016 15:59
Show Gist options
  • Save thehungrycoder/b219f2b47b2bf70b27e8 to your computer and use it in GitHub Desktop.
Save thehungrycoder/b219f2b47b2bf70b27e8 to your computer and use it in GitHub Desktop.
Integrate sparkpost in Rails app
# config/initializers/email_settings.rb
ActionMailer::Base.smtp_settings = {
user_name: 'SMTP_Injection',
password: 'Any API Key with Send via SMTP permission',
address: 'smtp.sparkpostmail.com',
port: 587,
enable_starttls_auto: true,
format: :html,
from: 'mailer@yourawesomeapp.com'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment