lib/email/delivery/sendgrid_client.rb
# This method helps to include all recipients defined within the to, cc, and bcc parameters,
# across each object that you include in the personalizations array.
This method helps to include all recipients defined within the to, cc, and bcc parameters,
across each object that you include in the personalizations array.
This method helps to include all recipients defined within the to cc and bcc parameters across each object that you include in the personalizations array .
def personalizations(to, cc, bcc)
        personalizations_hash = {
            "to" => recepient_list(to)
        }
        unless cc.nil?
          personalizations_hash.merge!({ "cc" => recepient_list(cc) })
        end
        unless bcc.nil?
          personalizations_hash.merge!({ "bcc" => recepient_list(cc) })
        end
        [
            personalizations_hash
        ]
      end
def personalizations ( to , cc , bcc ) personalizations_hash = { "to" => recepient_list ( to ) } unless cc . nil? personalizations_hash . merge! ( { "cc" => recepient_list ( cc ) } ) end unless bcc . nil? personalizations_hash . merge! ( { "bcc" => recepient_list ( cc ) } ) end [ personalizations_hash ] end
This method helps to include all recipients defined within the to, cc, and bcc parameters,
across each object that you include in the personalizations array.
This method helps to include all recipients defined within the to cc and bcc parameters across each object that you include in the personalizations array .
to
<not_specific>
cc
<not_specific>
bcc
<not_specific>