A simple Django app for connecting AMAZON SES-CELERY AND BOTO.
Project description
## hazinSES
![hazinses](http://ucuncuadam.files.wordpress.com/2012/02/sami-hazinses-2.jpg?w=500&h=389 “hazinses”)
#####ABOUT
Hazinses is a django app, that helps you to send asynchronous email via celery through Amazon-SES. The biggest problem is complaint and bounce emails that come as feedback from amazon services. Those emails cause you to be reported as Hard Bounce in case you keep sending emails and prevent forever you to send email to that user again.
#####INSTRUCTIONS
install hazinses app
pip install hazinses
make sure that you installed hazinses requirements
[‘boto’, ‘djcelery’]
Add hazinses into your INSTALLED_APPS
INSTALLED_APPS += (‘hazinses’)
Add hazinses to your urls.py
url(r’^hazinses/’, include(‘hazinses.urls’)),
Set following settings to your settings.py
AMAZON_REGION = ‘<YOUR AMAZON REGION>’ AWS_ACCESS_KEY_ID = ‘<AWS_ACCESS_KEY_ID>’ AWS_SECRET_ACCESS_KEY = ‘<AWS_SECRET_ACCESS_KEY>’ BOUNCE_TIMEDELTA = <DAYS FOR NOT SENDING EMAIL AFTER BOUNCE NOTIFICTAION> COMPLAINT_TIMEDELTA = <DAYS FOR NOT SENDING EMAIL AFTER COMPLAINT NOTIFICATION>
Sync your Database
python manage.py syncdb
RUN CELERY…
python manage.py celeryd
Use default send_mail function of django, after you change the email backend settings from your settings.py like below
EMAIL_BACKEND = “hazinses.EmailBackend”
###### THANKS
thanks to serdarakarca
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for hazinses-0.4.macosx-10.9-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93623661beaed3319f72d1d3d6efe92d5865fa17cdfda893253558e3d8256e87 |
|
MD5 | 7631d921d917a4ea7a6c358033be097a |
|
BLAKE2b-256 | 934adeae215d929222398fb57414c7e414e118444ecad8a58c748a217a1fa01e |