public Method

Mail.bcc( default = nil )

Returns who the email bcc’d as an Array of email addresses as opposed to an Array of TMail::Address objects which is what Mail#to_addrs returns

Example:

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

Source Code

# File action_mailer/vendor/tmail-1.2.2/tmail/interface.rb, line 292
def bcc( default = nil )
  addrs2specs(bcc_addrs(nil)) || default
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.