Title: ๐ง Simple Email Automation with Python ๐
Description: The "Simple Email Automation with Python" project is a Python script designed to automate the process of sending emails using Gmail's SMTP server. This script provides a convenient way to send emails programmatically, enabling users to integrate email sending functionality into their Python applications or scripts.
Features:
๐ Function-Based Approach: The project utilizes a function-based approach, allowing users to encapsulate the email sending functionality within a single function call.
โ๏ธ Customizable Email Content: Users can customize various aspects of the email, including sender, recipient, subject, priority, and message body.
๐ Secure SMTP Connection: The script establishes a secure SMTP connection with Gmail's SMTP server using SSL, ensuring that sensitive information such as passwords is transmitted securely.
๐ ๏ธ Error Handling: The script includes error handling mechanisms to handle potential exceptions during the SMTP connection establishment and email sending process.
๐ Reusable and Extendable: The project is designed to be reusable and extendable, allowing users to easily integrate email sending functionality into their own projects or scripts.
---------> How to Create & use app passwords <---------
Important: To create an app password, you need 2-Step Verification on your Google Account.
If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an app password.
- Go to your Google Account.
- Select Security.
- Under "Signing in to Google," select 2-Step Verification.
- At the bottom of the page, select App passwords.
- Enter a name that helps you remember where youโll use the app password.
- Select Generate.
- To enter the app password, follow the instructions on your screen. The app password is the 16-character code that generates on your device.
- Select Done.