Tuesday, October 9, 2012

Rails - Lightweight smtp setting using sendgrid

Create an account on http://sendgrid.com/.

Add action_mailer setting in config file:

  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {:address => 'smtp.sendgrid.net', :user_name => '[account_name]', :password => '[password]'}

Keyword: rails, email, server

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.