App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.mail_stub.MailServiceStub Class Reference
Inheritance diagram for google.appengine.api.mail_stub.MailServiceStub:
google.appengine.api.apiproxy_stub.APIProxyStub

Public Member Functions

def __init__
 
def get_sent_messages
 
- Public Member Functions inherited from google.appengine.api.apiproxy_stub.APIProxyStub
def __init__
 
def CreateRPC
 
def MakeSyncCall
 
def SetError
 

Static Public Attributes

 THREADSAFE = True
 
- Static Public Attributes inherited from google.appengine.api.apiproxy_stub.APIProxyStub
 THREADSAFE = False
 

Additional Inherited Members

- Public Attributes inherited from google.appengine.api.apiproxy_stub.APIProxyStub
 request_data
 

Detailed Description

Python only mail service stub.

Args:
  host: Host of SMTP server to use.  Blank disables sending SMTP.
  port: Port of SMTP server to use.
  user: User to log in to SMTP server as.
  password: Password for SMTP server user.

Constructor & Destructor Documentation

def google.appengine.api.mail_stub.MailServiceStub.__init__ (   self,
  host = None,
  port = 25,
  user = '',
  password = '',
  enable_sendmail = False,
  show_mail_body = False,
  service_name = 'mail',
  allow_tls = False 
)
Constructor.

Args:
  host: Host of SMTP mail server.
  port: Port of SMTP mail server.
  user: Sending user of SMTP mail.
  password: SMTP password.
  enable_sendmail: Whether sendmail enabled or not.
  show_mail_body: Whether to show mail body in log.
  service_name: Service name expected for all calls.
  allow_tls: Allow TLS support. If True, use TLS provided the server
announces support in the EHLO response. If False, do not use TLS.

Member Function Documentation

def google.appengine.api.mail_stub.MailServiceStub.get_sent_messages (   self,
  to = None,
  sender = None,
  subject = None,
  body = None,
  html = None 
)
Get a list of mail messages sent via the Mail API.

Args:
  to: A regular expression that at least one recipient must match.
  sender: A regular expression that the sender must match.
  subject: A regular expression that the message subject must match.
  body: A regular expression that the text body must match.
  html: A regular expression that the HTML body must match.

Returns:
  A list of matching mail.EmailMessage objects.

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