isn' verified,but this is fineclick advanced and then go to quickstart (unsafe(if you write python scripts for others and don' want this warning appearing for themyou'll need to learn about google' app verification processwhich is beyond the scope of this book when the next page prompts you with "quickstart wants to access your google account,click allow and then close the browser token json file will be generated to give your python scripts access to the gmail account you entered the browser will only open to the login page if it can' find an existing token json file with credentials json and token jsonyour python scripts can send and read emails from your gmail account without requiring you to include your gmail password in your source code sending mail from gmail account once you have token json filethe ezgmail module should be able to send email with single function callimport ezgmail ezgmail send('recipient@example com''subject line''body of the email'if you want to attach files to your emailyou can provide an extra list argument to the send(functionezgmail send('recipient@example com''subject line''body of the email'['attachment jpg''attachment mp ']note that as part of its security and anti-spam featuresgmail might not send repeated emails with the exact same text (since these are likely spamor emails that contain exe or zip file attachments (since they are likely virusesyou can also supply the optional keyword arguments cc and bcc to send carbon copies and blind carbon copiesimport ezgmail ezgmail send('recipient@example com''subject line''body of the email'cc='friend@example com'bcc='otherfriend@example com,someoneelse@example com'if you need to remember which gmail address the token json file is configured foryou can examine ezgmail email_address note that this variable is populated only after ezgmail init(or any other ezgmail function is calledimport ezgmail ezgmail init(ezgmail email_address 'example@gmail combe sure to treat the token json file the same as your password if someone else obtains this filethey can access your gmail account (though they won' be able to change your gmail passwordto revoke previously issued token json filesgo to sending email and text messages