-
-
Notifications
You must be signed in to change notification settings - Fork 76
Gmail
Jeremy Ephron Barenholtz edited this page Sep 13, 2020
·
7 revisions
simplegmail.Gmail(client_secret_file='client_secret.json')
The Gmail class which serves as the entrypoint for the Gmail service API.
Parameters:
-
client_secret_file
: str
The name of the user's client secret file. Default to "client_secret.json" if not provided.
Gmail.send_message(sender, to, subject='', msg_html=None, msg_plain=None, cc=None, bcc=None, attachments=None, signature=False, user_id='me')
Sends an email.
Parameters:
-
sender
: str
The email address the message is being sent from. -
to
: str
The email address the message is being sent to. -
subject
: str
The subject line of the email. -
subject
: str
The subject line of the email. -
subject
: str
The subject line of the email. -
subject
: str
The subject line of the email. -
subject
: str
The subject line of the email. -
subject
: str
The subject line of the email.
If you have any questions, comments, or suggestions, feel free to open an issue or submit a pull request with your changes.