Sendgrid

Notice:

SendGrid have now ended their reseller partnerships, so this Add-on has been end-of-lifed. As such it should not be enabled.

Please see the Instructions tab for further details on how you can continue to utilise SendGrid on Engine Yard.

SendGrid’s cloud-based email infrastructure relieves businesses of the cost and complexity of maintaining custom email systems. SendGrid provides reliable delivery, scalability and real-time analytics along with flexible API’s that make custom integration a breeze. SendGrid solves the technical challenges, eliminating your email headaches, so that you can focus on your core product and meet the email demands of your business.

New users:

Existing users:

  • Please use the Set it up page to enable SendGrid on new environments and follow the below instructions for utilising SendGrid, as a part of which you should reach out to Engine Yard Support in order to exchange the generated credentials for an API key.

This code snippet assumes you are using bundler and Rails, and deploying to production.

1. Modify your Gemfile

  • Add the following lines to your gemfile:
 gem 'ey_config'

2. Modify config/environments/production.rb

  • Replace "yourdomain.com" below with your application's domain. Or, use EY::Config.get('base', 'domain_name') if you've set your domain under "Edit Environment".
  • For more details, see Sendgrid Documentation.
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
     :authentication => :plain,
     :address => "smtp.sendgrid.net",
     :port => 587,
     :domain => "yourdomain.com",
     :user_name => EY::Config.get(:sendgrid, 'SENDGRID_USERNAME'),
     :password => EY::Config.get(:sendgrid, 'SENDGRID_PASSWORD')
}

3. Swap the credentials for an API key

  • SendGrid now requires the use of API keys, but their legacy partner API generates username & password credentials. Please contact EY Support in order for us to update the generated credentials to an API key.

Please log in if you would like to set up the service.