lib/postmark.rb in challengepost-postmark-0.7.1 vs lib/postmark.rb in challengepost-postmark-0.7.2
- old
+ new
@@ -108,15 +108,15 @@
if reply_to = message['reply-to']
options["ReplyTo"] = reply_to.to_s
end
if message.multipart?
- options["HtmlBody"] = message.html_part
- options["TextBody"] = message.text_part
+ options["HtmlBody"] = message.html_part.body.to_s
+ options["TextBody"] = message.text_part.body.to_s
elsif message.content_type == "text/html"
- options["HtmlBody"] = message.body
+ options["HtmlBody"] = message.body.to_s
else
- options["TextBody"] = message.body
+ options["TextBody"] = message.body.to_s
end
options
end
def extract_headers(message)