Skip to content

Messages sent using Gmail API marked as suspicious #51

@mbonness

Description

@mbonness

When I used this in my Python script, the emails received come with a warning "Be careful with this message
The sender hasn't authenticated this message so Gmail can't verify that it actually came from them. Avoid clicking links, downloading attachments, or replying with personal information."

This warning is apparently related to setting the message["from"] attribute, commenting out the following line fixes it so messages are sent without the authentication warning:

message["from"] = sender

Screenshot 2023-10-28 at 3 16 08 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions