Skip to content

mail bcc recipients #7

mmerickel opened this Issue Dec 10, 2011 · 3 comments

3 participants

Pylons Project member

According to mitchell` on #pyramid, there may be an issue sending mail to BCC recipients.

Pylons Project member

I can confirm there is a problem with BCC:

Tested on my app, I'd put CC and BCC (and different variations of it)

Mails get delivered to both cc or BCC but BCC is visible in the email header and can be read.

Here's the header of email I'd received

From: errors@****.com
Subject: test
To: marcin@****.com, marcin@*****.com
Pylons Project member
Pylons Project member

The issue here is that the code adds bcc: header into the email, that is not correct. SMTP headers are really just for email clients, thus adding bcc header makes it visible in email clients.

The fix to this issue is to remove Bcc from ADDRESS_HEADERS_WHITELIST, and

        if self.bcc:
            response.base['Bcc'] = self.bcc

in get_response function.

@mcdonc mcdonc closed this in 7b3dcaa Jan 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.