diff --git a/README.md b/README.md index cf2cfdbc..e4d91b91 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,9 @@ params = { :text, :html, :cc, + :cc_name, :bcc, + :bcc_name, :reply_to, :date, :smtpapi, diff --git a/lib/sendgrid/mail.rb b/lib/sendgrid/mail.rb index 58a5393a..8e777d0f 100644 --- a/lib/sendgrid/mail.rb +++ b/lib/sendgrid/mail.rb @@ -4,8 +4,8 @@ module SendGrid class Mail - attr_accessor :to, :to_name, :from, :from_name, :subject, :text, :html, :cc, - :bcc, :reply_to, :date, :smtpapi, :attachments, :content, :template + attr_accessor :to, :to_name, :from, :from_name, :subject, :text, :html, :cc, :cc_name, + :bcc, :bcc_name, :reply_to, :date, :smtpapi, :attachments, :content, :template def initialize(params = {}) params.each do |k, v| @@ -139,7 +139,9 @@ def to_h :date => date, :replyto => reply_to, :cc => cc, + :ccname => cc_name, :bcc => bcc, + :bccname => bcc_name, :text => text, :html => html, :'x-smtpapi' => smtpapi_json,