Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmailSubscriber

Simple Email Sender Built in Celery

What is EmailSubscriber And How it Works

Imagine your are the admin of this page, so you can add emails, manage them and send them any message you want. Before using this console, become sure you've already configured both settings.py and tasks.py truly. Email Subscriber uses Bootstrap4 for its main panel. Once you turned on your network data, all CDNs will be cached up.

Home Page (When your server is up)

You can add new subscribers by writing their emails in the post form. Once you wrote their email, a message appears and the subscribers table will be updated. A really simple footage is right here.

Table updated and success message appeared

Danger Zone

In this section, you have a bunch of tools to manage your subscribers.

Danger Zone

1. Send 2 All

By clicking this button, you run a celery task which tries to send an email (which you have configured in task.py) to every single subscriber. Once you ran this part, emails will be shown in their inbox as below.

inbox of eali.iken.908w@ordyspost.ga

Other subscribers will get same email in their inbox.

Finally, when the send_email_to_all task operated, you will see such a result in the Celery console. As you see, in last two lines it responsed "I sent emails to all 3 Subscribers".

2. Flush Subscribers

If you want to remove all Subscribers model records, it's a best choice to use this part. As usual, anytime you press this button, subscribers table will be flushed up and nothing will be longer appeared there.

Setting Up

You may want to setup such a service on your local machine or in production environment. There is no limit. You just need to clone this repo, start configuring and then, you will have a EmailSubscriber in your own platform.

Docs to setup Celery with Django

How to send emails with core.mail.send_mail

Fork

Fork and feed for free (never miss the license) :)

About

Manage Your Subscribers With Celery in Django

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages