lib/sendgrid_ruby/email.rb in sendgrid_ruby-0.0.1 vs lib/sendgrid_ruby/email.rb in sendgrid_ruby-0.0.3
- old
+ new
@@ -282,10 +282,10 @@
def to_web_format()
web = {
'to' => @to,
'from' => get_from,
- 'x-smtpapi' => @smtpapi.json_string,
+ 'x-smtpapi' => @smtpapi.to_json,
'subject' => @subject,
'text' => @text,
'html' => @html,
'headers' => get_headers_json,
}