Last active
October 27, 2016 15:59
-
-
Save thehungrycoder/b219f2b47b2bf70b27e8 to your computer and use it in GitHub Desktop.
Integrate sparkpost in Rails app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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