Automailer is a Flask-based web application that allows users to send emails with or without attachments. The application supports file uploads and integrates with SMTP servers for email sending.
You can access the live version at:
๐ https://automailer-k0qe.onrender.com/
- Send emails with plain text body and attachments.
- Upload multiple files as attachments.
- Built with Flask and uses a simple SMTP setup for Gmail.
- Python 3.x
- Flask
- smtplib
- email.mime
-
Clone this repository:
git clone https://github.com/AaronKurian/AutoMailer.git cd AutoMailer
-
Set up a virtual environment (optional but recommended):
python3 -m venv myenv source myenv/bin/activate # On Windows: myenv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Access the app at
http://127.0.0.1:8080
(orhttp://<your-ip>:8080
). -
The home page will allow you to:
- Enter the sender's email and password.
- Specify recipients (separate with commas).
- Add a subject and body for the email.
- Attach files (optional).
- Send the email immediately.
- UPLOAD_FOLDER: The folder where uploaded files are temporarily stored. Default is
'uploads/'
.
-
If deploying on a platform like Render, make sure to specify port
8080
as required by the platform:app.run(host='0.0.0.0', port=8080)
- This app uses Gmail's SMTP server (
smtp.gmail.com
) to send emails. You may need to enable "Less secure apps" in your Gmail account settings or use an App Password if Two-Factor Authentication (2FA) is enabled. - Ensure that the required Python packages are installed as per the
requirements.txt
file.
This project is licensed under the MIT License - see the LICENSE file for details.
Made With โค๏ธ by Aaron Kurian Abraham