How to use this with gmail as your email provider if you are using gmail as your email provider, enter google app password in password field Click here to generate your app password Note 1: use this script in a sperate directory with your attachments that you want to send this script will send all the files as attachment from the directory apart from Script.py file Note 2:if your body text is in multiple lines use \ to seprate lines or use string concatation