laravel/framework — pull request #6392 by adamnicholson (2014-11-12 00:48:49+00:00)
Title: Fix BCC addresses not supported by Mail MandrillTransport

Mandrill's `messages/send-raw` API currently doesn't support sending to BCC addresses by simply adding them to the raw message header, which is what's currently used by the Laravel `MandrillTransport`class.

This change includes all addresses that should receive the email (TO, CC and BCC) in the API call via a "to" argument which is supported by their API.

From a member of the Mandrill support team:
> If you want to include a BCC recipient while generating a send-raw call manually, you'll need to include the recipient in the to: array for your API call, while not including them in any headers within the raw message. The send-raw call is intended primarily as a way to convert SMTP conversations (which include a RCPT TO portion) to API calls, so if you're making the call directly you will need to include the address manually rather than just in the header of the raw message.

Also added a basic unit test for the `MandrillTransport` to test the `send()` method