https://github.com/lnxpy/emailsubscriber
Manage Your Subscribers With Celery in Django
https://github.com/lnxpy/emailsubscriber
Last synced: 9 months ago
JSON representation
Manage Your Subscribers With Celery in Django
- Host: GitHub
- URL: https://github.com/lnxpy/emailsubscriber
- Owner: lnxpy
- License: gpl-3.0
- Created: 2020-06-29T18:41:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-06T22:47:38.000Z (over 4 years ago)
- Last Synced: 2025-02-02T01:51:13.488Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 389 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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__
- [Asynchronous Tasks With Django and Celery](https://realpython.com/asynchronous-tasks-with-django-and-celery/)
- [How to Use Celery and RabbitMQ with Django](https://simpleisbetterthancomplex.com/tutorial/2017/08/20/how-to-use-celery-with-django.html)
- [Tutorial: Asynchronous Tasks with Django and Celery](https://www.youtube.com/watch?v=WevtkoCA-KQ)
__How to send emails with core.mail.send_mail__
- [Sending Emails in Django](https://www.youtube.com/watch?v=X7DWErkNVJs)
- [Sending email](https://docs.djangoproject.com/en/3.0/topics/email/)
### Fork
Fork and feed for free (never miss the license) :)