SendGrid support for Rails via ActionMailer.
Add this line to your application's Gemfile:
gem 'sendgrid-actionmailer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sendgrid-actionmailer
Edit your config/environments/$ENVIRONMENT.rb
file and add/change the following to the ActionMailer configuration.
config.action_mailer.delivery_method = :sendgrid_actionmailer
config.action_mailer.sendgrid_actionmailer_settings = {api_user: ENV['SENDGRID_USERNAME'], api_key: ENV['SENDGRID_PASSWORD']}
TODO: Add ActionMailer instructions.
- Fork it ( https://github.com/[my-github-username]/sendgrid-actionmailer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request