App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Namespaces | Classes | Functions
google.appengine._internal.django.core.mail Namespace Reference

Namespaces

 utils
 

Classes

class  SMTPConnection
 

Functions

def get_connection
 
def send_mail
 
def send_mass_mail
 
def mail_admins
 
def mail_managers
 

Detailed Description

Tools for sending email.

Function Documentation

def google.appengine._internal.django.core.mail.get_connection (   backend = None,
  fail_silently = False,
  kwds 
)
Load an e-mail backend and return an instance of it.

If backend is None (default) settings.EMAIL_BACKEND is used.

Both fail_silently and other keyword arguments are used in the
constructor of the backend.
def google.appengine._internal.django.core.mail.mail_admins (   subject,
  message,
  fail_silently = False,
  connection = None 
)
Sends a message to the admins, as defined by the ADMINS setting.
def google.appengine._internal.django.core.mail.mail_managers (   subject,
  message,
  fail_silently = False,
  connection = None 
)
Sends a message to the managers, as defined by the MANAGERS setting.
def google.appengine._internal.django.core.mail.send_mail (   subject,
  message,
  from_email,
  recipient_list,
  fail_silently = False,
  auth_user = None,
  auth_password = None,
  connection = None 
)
Easy wrapper for sending a single message to a recipient list. All members
of the recipient list will see the other recipients in the 'To' field.

If auth_user is None, the EMAIL_HOST_USER setting is used.
If auth_password is None, the EMAIL_HOST_PASSWORD setting is used.

Note: The API for this method is frozen. New code wanting to extend the
functionality should use the EmailMessage class directly.
def google.appengine._internal.django.core.mail.send_mass_mail (   datatuple,
  fail_silently = False,
  auth_user = None,
  auth_password = None,
  connection = None 
)
Given a datatuple of (subject, message, from_email, recipient_list), sends
each message to each recipient list. Returns the number of e-mails sent.

If from_email is None, the DEFAULT_FROM_EMAIL setting is used.
If auth_user and auth_password are set, they're used to log in.
If auth_user is None, the EMAIL_HOST_USER setting is used.
If auth_password is None, the EMAIL_HOST_PASSWORD setting is used.

Note: The API for this method is frozen. New code wanting to extend the
functionality should use the EmailMessage class directly.