Destructively sets the "Cc:" field to the passed array of strings (which should be valid email addresses)
Example:
mail = TMail::Mail.new mail.cc = ["mikel@abc.com", "Mikel <mikel@xyz.com>"] mail.cc #=> ["mikel@abc.org", "mikel@xyz.org"] mail['cc'].to_s #=> "mikel@abc.com, Mikel <mikel@xyz.com>"
Source Code
# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 318 def cc=( *strs ) set_string_array_attr 'Cc', strs end
<code/>and<pre/>for code samples.