fuel / email

Fuel PHP Framework - Fuel v1.x Email library
60 stars 38 forks source link

BCC recipients not being stripped? #25

Closed gillesdemey closed 12 years ago

gillesdemey commented 12 years ago

The BCC recipients appear to not being stripped from the headers, resulting in them being visible to everyone.

Tested this using Mail for Mac and Sparrow for Mac/iOS.

gillesdemey commented 12 years ago

I was able to resolve this bug by changing the following code:

email/classes/email/driver.php line 659:

foreach (array('cc' => 'Cc', 'bcc' => 'Bcc', 'reply_to' => 'Reply-To') as $list => $header)

to

foreach (array('cc' => 'Cc', 'bcc' => 'BCC', 'reply_to' => 'Reply-To') as $list => $header)

notice the upper-case BCC.

The BCC headers are now stripped in every mail client I tested (Mail for Mac, Outlook 2010, Sparrow for Mac/iOS)