Thanks, that appears to have worked.

It looks like the head revision has that now. Glad to see it's been
updated.

On Oct 5, 12:38 am, Jonathan Lundell <[email protected]> wrote:
> On Oct 4, 2010, at 9:22 PM, Chris wrote:
>
>
>
> > I've been using web2py to send mail, and one of my users alerted me
> > that BCCs are visible!
>
> > I'm using a gmail account, standard web2py setup, and using the
> > following code:
>
> > status = mail.send(to="%s <%s>" %
> > (recipient['first_name'],custom_recipient or recipient['email']),
> >                subject=model_data['subject'],
> >                bcc = bcc,
> >                message=("This is an HTML email, please let Chris know
> > you can't see it.",message_html))
>
> > Any ideas?
>
> Try commenting out this line in gluon/tools.py:
>
>             payload['Bcc'] = encode_header(', '.join(bcc).decode(encoding))
>
> ...and see what happens.
>
> There should never be a bcc header in an email message.

Reply via email to