Skip to content

Instantly share code, notes, and snippets.

@jcarbaugh
Created March 24, 2011 21:01
Show Gist options
  • Save jcarbaugh/885876 to your computer and use it in GitHub Desktop.
Save jcarbaugh/885876 to your computer and use it in GitHub Desktop.
MailHandler registration for posting by email with django-cloudmailin
handler = MailHandler()
handler.register_address(
address="000000000000000000@cloudmailin.com",
secret="secret-key-from-cloudmailin",
callback=create_post,
)
urlpatterns = patterns('',
url(r'^postbymail/$', mail_handler),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment