Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcarbaugh/django-cloudmailin
Django client for CloudMailin incoming email service
https://github.com/jcarbaugh/django-cloudmailin
Last synced: 2 months ago
JSON representation
Django client for CloudMailin incoming email service
- Host: GitHub
- URL: https://github.com/jcarbaugh/django-cloudmailin
- Owner: jcarbaugh
- License: bsd-3-clause
- Created: 2011-02-28T18:07:00.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-10-08T22:24:23.000Z (about 13 years ago)
- Last Synced: 2024-10-07T21:06:55.301Z (3 months ago)
- Language: Python
- Homepage:
- Size: 360 KB
- Stars: 24
- Watchers: 14
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==================
django-cloudmailin
==================http://cloudmailin.com/
------------
Requirements
------------* django >= 1.2.0
-------------
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='[email protected]',
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
passThen, in urls.py, register a URL pattern to act as the endpoint::
url(r'^receive/mail/here/$', mail_handler)