Permalink
Browse files

Added dummy recipient to standard SMTP header (as discussed with Send…

…Grid support)
  • Loading branch information...
1 parent f6663b9 commit a9883cd63b7d65e9eb82cb52398110f865492018 @PavelTyk PavelTyk committed Jan 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/send_grid/mail_interceptor.rb
  2. +1 −1 lib/send_grid/version.rb
@@ -4,7 +4,7 @@ def self.delivering_email(mail)
sendgrid_header = mail.instance_variable_get(:@sendgrid_header)
sendgrid_header.add_recipients(mail.to)
mail.header['X-SMTPAPI'] = sendgrid_header.to_json if sendgrid_header.data.present?
- mail.header['to'] = nil
+ mail.header['to'] = 'dummy@email.com'
end
end
end
View
@@ -1,4 +1,4 @@
module SendGrid
- VERSION = "2.0"
+ VERSION = "2.0.1"
end

0 comments on commit a9883cd

Please sign in to comment.