Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created May 12, 2011 23:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/969707 to your computer and use it in GitHub Desktop.
Save mrrooijen/969707 to your computer and use it in GitHub Desktop.
SMTP Settings for SendGrid
# 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