App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
google.appengine._internal.django.core.mail.message.EmailMessage Class Reference
Inheritance diagram for google.appengine._internal.django.core.mail.message.EmailMessage:
google.appengine._internal.django.core.mail.message.EmailMultiAlternatives

Public Member Functions

def __init__
 
def get_connection
 
def message
 
def recipients
 
def send
 
def attach
 
def attach_file
 

Public Attributes

 to
 
 bcc
 
 from_email
 
 subject
 
 body
 
 attachments
 
 extra_headers
 
 connection
 

Static Public Attributes

string content_subtype = 'plain'
 
string mixed_subtype = 'mixed'
 
 encoding = None
 

Detailed Description

A container for email information.

Constructor & Destructor Documentation

def google.appengine._internal.django.core.mail.message.EmailMessage.__init__ (   self,
  subject = '',
  body = '',
  from_email = None,
  to = None,
  bcc = None,
  connection = None,
  attachments = None,
  headers = None 
)
Initialize a single email message (which can be sent to multiple
recipients).

All strings used to create the message can be unicode strings
(or UTF-8 bytestrings). The SafeMIMEText class will handle any
necessary encoding conversions.

Member Function Documentation

def google.appengine._internal.django.core.mail.message.EmailMessage.attach (   self,
  filename = None,
  content = None,
  mimetype = None 
)
Attaches a file with the given filename and content. The filename can
be omitted and the mimetype is guessed, if not provided.

If the first parameter is a MIMEBase subclass it is inserted directly
into the resulting message attachments.
def google.appengine._internal.django.core.mail.message.EmailMessage.attach_file (   self,
  path,
  mimetype = None 
)
Attaches a file from the filesystem.
def google.appengine._internal.django.core.mail.message.EmailMessage.recipients (   self)
Returns a list of all recipients of the email (includes direct
addressees as well as Bcc entries).
def google.appengine._internal.django.core.mail.message.EmailMessage.send (   self,
  fail_silently = False 
)
Sends the email message.

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