Skip to content

A versatile email distribution tool capable of sending bulk messages to multiple recipients simultaneously, with the option to schedule deliveries or send them instantly.

Notifications You must be signed in to change notification settings

anshumannandan/CampaignMailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

1. Subscribe to mailing list

image

2. Unsubscribe from mailing list

image

3. Add Campaigns (only for admin users)

image image

4. Send Campaign Emails to all active users

Emails are sent through Celery Group due to which response time is significantly reduced

image

5. Add Scheduled Campaigns

At a specified date and time, scheduled campaigns are automatically dispatched to all active users via email.

image

How to setup the project on your local server?

  1. Clone the repository:
git clone https://github.com/anshumannandan/CampaignMailer

To run the server, you need to have Python installed on your machine. If you don't have it installed, you can follow the instructions here to install it.

  1. Navigate to the project directory:
cd CampaignMailer
  1. Install & Create a virtual environment:
pip install virtualenv
virtualenv venv
  1. Activate the virtual environment:
venv/scripts/activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Setup .env file in CampaignMailer/project/ and navigate back to base directory CampaignMailer/:
SECRET_KEY =
DEBUG = 
EMAIL_HOST = 
EMAIL_PORT = 
EMAIL_HOST_USER = 
EMAIL_HOST_PASSWORD = 
EMAIL_USE_TLS =
  1. Run the migrate command:
python manage.py migrate
  1. You can create a superuser executing the following commands:
python manage.py createsuperuer

A prompt will appear asking for username, email followed by password.

  1. Run the backend server on localhost:
python manage.py runserver

You can access the endpoints from your web browser following this url:

http://127.0.0.1:8000

To access the django admin panel follow this link and login through superuser credentials:

http://127.0.0.1:8000/admin/
  1. To run the celery worker, you need to have Redis installed on your machine. If you don't have it installed, you can download and install it from here.

  2. Run celery worker (On a separate terminal with activated virtual environment):

celery -A cryptBEE.celery worker -l info

About

A versatile email distribution tool capable of sending bulk messages to multiple recipients simultaneously, with the option to schedule deliveries or send them instantly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published