Skip to content

Klavis-AI/email-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Automation

A Python script for automated email sending using Resend API.

Setup

  1. Create and activate a Python 3 virtual environment, then install dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Create your environment file:
cp .env.example .env
  1. Get your Resend API key from the Resend dashboard and put it in .env:
RESEND_API_KEY=your_resend_api_key
  1. Open constants.py and set your email configuration values:
  • FROM_EMAIL
  • EMAIL_RECIPIENTS
  • SUBJECT
  • REPLY_TO (optional)
  • ATTACHMENT_PATH and ATTACHMENT_NAME (optional)

Run it!

python main.py

About

Automatically send email with Resend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published