Skip to content

Created an email scheduler using QStash Python SDK and SendGrid. I have also written a blog post about it on upstash.com.

Notifications You must be signed in to change notification settings

Abdusshh/email_scheduler_qstash_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Scheduler

This project is an email scheduler that allows you to schedule and send emails at a later time.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/email-scheduler.git
  2. Navigate to the project directory:

    cd email-scheduler
  3. Create a virtual environment:

    python -m venv venv
    cd venv
  4. Activate the virtual environment:

    • For Windows:

      .\Scripts\activate
    • For macOS/Linux:

      source bin/activate
  5. Install the required dependencies:

    pip install -r requirements.txt
  6. Set the required environment variables:

    Replace QSTASH_TOKEN, DEPLOYED_URL, SENDGRID_API_KEY, and SENDGRID_SENDER_EMAIL_ADDRESS with your own values.

    You can find the SENDGRID_API_KEY and SENDGRID_SENDER_EMAIL_ADDRESS in your SendGrid account.

    You can find the QSTASH_TOKEN in your Upstash account.

    You can leave the DEPLOYED_URL blank and set it later when you deploy the application.

Usage

  1. Run the application locally:

    python manage.py runserver
  2. Open your web browser and navigate to http://localhost:8000/scheduler/schedule-email.

  3. Follow the instructions on the web page to schedule and send emails.

About

Created an email scheduler using QStash Python SDK and SendGrid. I have also written a blog post about it on upstash.com.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published