Client for CloudMailin incoming email service
- django >= 1.2.0
Add to INSTALLED_APPS:
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( firstname.lastname@example.org', 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:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-cloudmailin-0.1.1.tar.gz (5.4 kB)||File type Source||Python version None||Upload date||Hashes View|