Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

hazinses is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links
Author
License
BSD License
Dependencies

## 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

  1. install hazinses app

    pip install hazinses

make sure that you installed hazinses requirements

['boto', 'djcelery']
  1. Add hazinses into your INSTALLED_APPS

    INSTALLED_APPS += ('hazinses')

  2. Add hazinses to your urls.py

    url(r'^hazinses/', include('hazinses.urls')),

  3. 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>

  1. Sync your Database

    python manage.py syncdb

  2. RUN CELERY...

    python manage.py celeryd

6) Use send_email as following in your code. This will make you send async email through your AWS SES account. In case, you receiver any bounce or complaint notifications, it will prevent you to send email again to that user again.

from hazinses.tasks import send_email

send_email.delay(subject, body,from_email,
to_email, mail_save_subject)

###### THANKS

thanks to serdarakarca

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.