lib/client.rb in navi_client-1.2.2 vs lib/client.rb in navi_client-1.2.3
- old
+ new
@@ -93,10 +93,10 @@
invalid_to_email = mail.to.nil? || !mail.to.is_a?(Array)
invalid_cc_email = mail.cc.nil? || !mail.cc.is_a?(Array)
- meta["from"] = mail.from.first
+ meta["from"] = mail.from.first unless mail.from.nil?
meta["to"] = invalid_to_email ? mail.to : mail.to.join(";")
meta["cc"] = mail.cc.join(";") unless invalid_cc_email
meta["subject"] = mail.subject
meta["date"] = mail.date.to_s