This is a Python script that allows you to send emails using Gmail's SMTP server. You can customize the subject, body, and recipient email address. The script also supports attachments, though it's currently set up to send emails without attachments.
- Python 3.x
- Required libraries:
smtplib,email - A Gmail account with 2-Step Verification enabled.
To send emails using your Gmail account from this script, you need to create an app-specific password. Follow these steps:
1.Open the link : https://myaccount.google.com/apppasswords
2.Sign in to your google account.
3.Enter a name for your app password.
4.Copy the generated password and save it for later use.
To run the email sender, follow these steps:
1.Open the script.py file .
2.Run the code.
3.Enter the credentials.
4.Enter the subject, body and the path to the attachements you want to send.
5.The email will be sent.