I would like to use Ruby Net::SMTP to send email. The routine
send_message( msgstr, from_addr, *to_addrs )
works well in my code for sending email, but it is not clear from this API how to send email to a list of people that need to be blind copied (bcc:).
Am I missing something, or is it just not possible with Net::SMTP?
The
to_addrsparameter ofsend_messagespecifies the envelope to addresses. Including an address into_addrshas no effect on the to and cc addresses that get included in the message header.To bcc a recipient, include the address in the
to_addrsparameter, but don’t include it in the headers inmsgstr. For example:This will send an email to three recipients: to@example.org, cc@example.org and bcc@example.org. Only to@example.org and cc@example.org will be visible in the received message.