Send an email with gmail
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Send an email with gmail.

As mentioned in the source, this will only work with a gmail address not using two-factor authentication and the activated option "less secure apps" which you can change here:

You could copy and modify the methods provided, or just simply use it like this:

import gmail
gmail.send_email('', 'password', '', 'Example subject', 'Example message')