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