Skip to content

Consider is_multiple=True as default on larger than X amount of email addresses in TO #1081

Open
@nielstenboom

Description

@nielstenboom

Maybe the title spoils it a little, but my buddy just sent out a mass-email to 250 people with everyone in the TO field because he could not find the BCC field in the Mail class (#1017) 🔥 🚒

Excuse me if this is a dumb request since I'm not very up-to-speed with the Sendgrid ecosystem. To me it seems a bit dangerous you can leak email addresses with such a simple silly developer mistake. Sure he should have been more careful, but what about making the default behavior a bit more safe, are there really people out there that want everyone in the TO field if there's 100+ addresses in TO?

But would it make sense to convert is_multiple to True somewhere under the hood when the TO field contains a list of length let's say larger than 50+? Or even better set a default is_multiple=True when len(to_emails)>1 ?

This would prevent someone in the future making the same mistake we did 😅 🙈

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions