Permalink
Browse files

adding support for debug output

  • Loading branch information...
1 parent 62b532d commit 5ca69f9f44b99bbfbf1d8456b6c98126deef4501 @stephenb committed Nov 9, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −1 README.textile
  2. +1 −0 lib/sendgrid.rb
View
2 README.textile
@@ -90,6 +90,6 @@ For further explanation see "SendGrid's wiki page on filters.":http://wiki.sendg
h3. TODO
-* Test coverage
+* Test coverage (I would appreciate help writing tests).
* Possibly integrate with SendGrid's Event API and some of the other goodies they provide.
View
1 lib/sendgrid.rb
@@ -106,6 +106,7 @@ def sendgrid_spamcheck_maxscore(score)
# Sets the custom X-SMTPAPI header before sending the email
def perform_delivery_smtp(mail)
+ puts "SendGrid X-SMTPAPI: #{sendgrid_json_headers(mail)}" if SENDGRID_DEBUG_OUTPUT
headers['X-SMTPAPI'] = sendgrid_json_headers(mail)
super
end

0 comments on commit 5ca69f9

Please sign in to comment.