This is the script in python for sending the email to multiple receipts.
For this script to work, you need to :
-
Allow permission for Less secure app access which can be done here: https://myaccount.google.com/lesssecureapps
-
Remove 2 factor authentication (if you have any)