This project is an automated emailing script designed to send emails automatically on an AWS Ubuntu server. It utilizes Python, OpenAI API, SMTP, AWS EC2, and cron for scheduling.
The purpose of this project is to automate the process of sending emails for various purposes, such as notifications, alerts, or scheduled updates. The script generates email content dynamically (optional) and sends emails using SMTP, allowing users to schedule email sending tasks at specific intervals using cron jobs.
- Python
- OpenAI API (if applicable)
- SMTP
- AWS (EC2 for hosting the server)
- cron
To set up and run the emailing script on your own AWS Ubuntu server, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/PierceBrandies/AutoMail.git -
Install the required dependencies:
pip install requirements.txt -
Configure the script:
Update theconfig.pyfile with your email server settings, OpenAI API key (if applicable), and other configuration options. If email message is to be created manually remember to setUSE_API = False -
Run the script:
python main.py
To host the emailing script on AWS, follow these steps:
- Launch an EC2 instance with Ubuntu.
- SSH into the EC2 instance and clone the project repository.
- Install Python and required dependencies.
- Configure security group settings to allow SMTP traffic.
- Set up cron jobs to schedule the script to run at your specified time.
This project is licensed under the MIT License - see the LICENSE file for details.


