README.rdoc in sendgrid-rails-2.0.4 vs README.rdoc in sendgrid-rails-2.0.5

- old
+ new

@@ -26,9 +26,27 @@ :authentication => :plain, :user_name => 'login@example.com', :password => 'your password' } +If you use Heroku, here what the mailer initializer may look like: + + ActionMailer::Base.register_interceptor(SendGrid::MailInterceptor) + + if ENV['SENDGRID_USERNAME'] && ENV['SENDGRID_PASSWORD'] + ActionMailer::Base.smtp_settings = { + :address => 'smtp.sendgrid.net', + :port => '465', + :authentication => :plain, + :user_name => ENV['SENDGRID_USERNAME'], + :password => ENV['SENDGRID_PASSWORD'], + :domain => 'heroku.com', + :enable_starttls_auto => true, + :ssl => true + } + ActionMailer::Base.delivery_method = :smtp + end + === Overriding default recipient in standard SMTP header Dummy recipient email used in sent email's "To" header and seen in received email's Received header. By default set to 'dummy@email.com'