Path: blob/master/Gmail/Gmail_Automate_response_from_keywords_in_mailbox.ipynb
2973 views
Gmail - Automate response from keywords in mailbox
Tags: #gmail #productivity #naas_drivers #operations #snippet
Author: Sanjay Sabu
Last update: 2023-05-18 (Created: 2021-04-20)
Description: This notebook automates the process of responding to emails in Gmail based on keywords found in the mailbox.
Input
Import librairies
Setup Variables
Create an application password following this procedure
username
: This variable stores the username or email address associated with the email accountpassword
: This variable stores the password or authentication token required to access the email accountsmtp_server
: This variable represents the SMTP server address used for sending emails.box
: This variable stores the name or identifier of the mailbox or folder within the email account that will be accessed.keywords
: This variable stores the keywords to be searched in email text.cron
: CRON to be set to schedule your notebook. More info hereemail_to
: This variable stores the emails to received the automatic response.subject
: This variable stores the subject of the email response.content
: This variable stores the content of the email response.files
: This variable stores the files to be sent as attachments.