public Method

Mail.bcc_addrs=( arg )

Destructively set the to field of the "Bcc:" header to equal the passed in string.

TMail will parse your contents and turn each valid email address into a TMail::Address object before assigning it to the mail message.

Example:

mail = TMail::Mail.new
mail.bcc = "Mikel <mikel@me.org>, another Mikel <mikel@you.org>"
mail.bcc_addrs #=>  [#<TMail::Address mikel@me.org>, #<TMail::Address mikel@you.org>]

Source Code

# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 256
def bcc_addrs=( arg )
  set_addrfield 'bcc', arg
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.