django-cloudmailin

Software Screenshot:
django-cloudmailin
Software Details:
Version: 0.1.1
Upload Date: 11 May 15
Developer: Jeremy Carbaugh
Distribution Type: Freeware
Downloads: 3

Rating: nan/5 (Total Votes: 0)

django-cloudmailin is a Django client for CloudMailin incoming email service.

Configuration

settings.py

Add to INSTALLED_APPS:

'cloudmailin'

Usage

MailHandler is a class based view. Since an application may have multiple email addresses, they have to be registered with their own secret key and callbacks. The callbacks can be reused if you want the same functionality for different email addresses.

from cloudmailin.views import MailHandler

mail_handler = MailHandler()
mail_handler.register_address(
 address='mysecretemail@cloudmailin.net',
 secret='mysupersecretkey',
 callback=my_callback_function
)

The callback will receive the HTTP post variables as keyword arguments:

def my_callback_function(**kwargs):
 # kwargs is a dict of cloudmailin post params
 pass

Then, in urls.py, register a URL pattern to act as the endpoint:

url(r'^receive/mail/here/$', mail_handler)

Requirements:

  • Python
  • Django

Other Software of Developer Jeremy Carbaugh

django-mediasync
django-mediasync

12 May 15

django-magicword
django-magicword

20 Feb 15

s3arch
s3arch

20 Feb 15

Comments to django-cloudmailin

Comments not found
Add Comment
Turn on images!