This Python script is designed to send bulk emails using the SMTP (Simple Mail Transfer Protocol) server. It leverages the smtplib
library for email sending and email
for creating email content. The script is intended for sending emails to multiple recipients with personalized content.
- Python 3.x
- Access to an SMTP server (e.g., Gmail) for sending emails
-
Clone the repository to your local machine:
git clone https://github.com/your_username/Bulk_Email.git
-
Navigate to the project directory:
cd Bulk_Email
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
Edit the editable.py
file to set your SMTP server details, sender's email address, and password.
#!/usr/bin/python3
smtp_server = "smtp.gmail.com" # Update this with your SMTP server
sender_email = "sender@mail.com" # Update this with your email address
sender_password = "sender password" # Update this with your email password
-
Add participants' details in the
resources/participants.py
file. -
Customize the email subject and body in the
resources/body.html
file. -
Run the script:
./send.py
Feel free to contribute by opening issues, providing feedback, or submitting pull requests. Any contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.