This application is a simple utility that allows you to send emails to multiple recipients using a CSV file and an HTML template. It uses the Mailgun API to send emails and the Flask framework to handle the web application.
- Python 3
- Flask
- requests
- Mailgun account and API key
- Clone the repository and navigate to the project directory.
- Install the required packages by running
pip install -r requirements.txt
. - Create a
config.py
file in the project root and add your Mailgun API key and domain. - Run the application by executing
python app.py
. - In your browser, go to
http://localhost:5000/
to access the application. - Select a CSV file containing the email addresses and an HTML template file.
- The default password is "shubh".
- Fill in the subject and password fields, and select an attachment file (if any).
- Click on the "Send Emails" button to start sending emails.
- A table will appear on the page showing the status of each email sent (success or failure).
The CSV file should contain at least one column named "to" with the email addresses of the recipients.
The email format should be "Designation<emailid@{}>"
- Make sure that the "to" field in the csv file is in the format
Designation<emailid@{}>
. - Make sure that "to" field is present in the csv file.
- Placeholder fields in the HTML template should be in the format
{{field_name}}
- Flask - The web framework used
- requests - Used to send HTTP requests
- Mailgun - Email sending API
- Bootstrap - CSS framework used for styling
You can find the project website at Replit