![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | get_sent_messages |
![]() | |
def | __init__ |
def | CreateRPC |
def | MakeSyncCall |
def | SetError |
Static Public Attributes | |
THREADSAFE = True | |
![]() | |
THREADSAFE = False | |
Additional Inherited Members | |
![]() | |
request_data | |
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.
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.
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.