lib/resend/mailer.rb in resend-0.2.0 vs lib/resend/mailer.rb in resend-0.2.1
- old
+ new
@@ -16,12 +16,12 @@
params = {
from: mail[:from].to_s,
to: mail.to,
subject: mail.subject,
}
- params[:cc] = mail[:cc] if mail[:cc].present?
- params[:bcc] = mail[:bcc] if mail[:bcc].present?
- params[:reply_to] = mail[:reply_to] if mail[:reply_to].present?
+ params[:cc] = mail[:cc].to_s if mail[:cc].present?
+ params[:bcc] = mail[:bcc].to_s if mail[:bcc].present?
+ params[:reply_to] = mail[:reply_to].to_s if mail[:reply_to].present?
params[:html] = mail.body.decoded
resp = @resend_client.send_email(params)
if resp[:error].nil? then
\ No newline at end of file