Created
May 12, 2011 23:55
-
-
Save mrrooijen/969707 to your computer and use it in GitHub Desktop.
SMTP Settings for SendGrid
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
# This is what people apparently use: | |
ActionMailer::Base.smtp_settings = { | |
:address => 'smtp.sendgrid.net', | |
:port => 25, | |
:domain => 'mysite.com', | |
:authentication => :plain, | |
:user_name => 'sendgrd_username@mysite.com', | |
:password => 'sendgrid_password' | |
} | |
# But if it doesn't work, try: | |
ActionMailer::Base.smtp_settings = { | |
:address => 'smtp.sendgrid.net', | |
:port => '587', | |
:domain => 'mysite.com', | |
:authentication => :plain, | |
:user_name => 'sendgrd_username@mysite.com', | |
:password => 'sendgrid_password', | |
:enable_starttls_auto => true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment