App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.ext.webapp.mail_handlers.InboundMailHandler Class Reference
Inheritance diagram for google.appengine.ext.webapp.mail_handlers.InboundMailHandler:
google.appengine.ext.webapp._webapp25.RequestHandler

Public Member Functions

def post
 
def receive
 
def mapping
 
- Public Member Functions inherited from google.appengine.ext.webapp._webapp25.RequestHandler
def initialize
 
def get
 
def post
 
def head
 
def options
 
def put
 
def delete
 
def trace
 
def error
 
def redirect
 
def handle_exception
 
def new_factory
 
def get_url
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.ext.webapp._webapp25.RequestHandler
 request
 
 response
 

Detailed Description

Base class for inbound mail handlers.

Example:

  # Sub-class overrides receive method.
  class HelloReceiver(InboundMailHandler):

    def receive(self, mail_message):
      logging.info('Received greeting from %s: %s' % (mail_message.sender,
                                                      mail_message.body))


  # Map mail handler to appliction.
  application = webapp.WSGIApplication([
      HelloReceiver.mapping(),
  ])

Member Function Documentation

def google.appengine.ext.webapp.mail_handlers.InboundMailHandler.mapping (   cls)
Convenience method to map handler class to application.

Returns:
  Mapping from email URL to inbound mail handler class.
def google.appengine.ext.webapp.mail_handlers.InboundMailHandler.post (   self)
Transforms body to email request.
def google.appengine.ext.webapp.mail_handlers.InboundMailHandler.receive (   self,
  mail_message 
)
Receive an email message.

Override this method to implement an email receiver.

Args:
  mail_message: InboundEmailMessage instance representing received
email.

The documentation for this class was generated from the following file: