Skip to content
Browse files

response as true

  • Loading branch information...
1 parent 9f51e88 commit 87d16e38f7258ccad2b0163e5f16497231bf1516 @eladmeidar committed Mar 29, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sendgrid_toolkit/mail.rb
View
1 lib/sendgrid_toolkit/mail.rb
@@ -5,6 +5,7 @@ def send_mail(options = {})
options["X-SMTPAPI"] = options[:api_headers]
response = api_post('mail', 'send', options)
raise(SendEmailError, "SendMail API refused to send email: #{response["errors"].inspect}") if response["message"] == "error"
+ true
end
end
end

0 comments on commit 87d16e3

Please sign in to comment.
Something went wrong with that request. Please try again.