List of all members.
Public Member Functions |
def | __init__ |
def | appendBody |
def | dump |
def | send |
Public Attributes |
| sender |
| to |
| subject |
| smtp_server |
| body |
Detailed Description
Create an email, possibly reading a configuration file.
An ``EmailReport`` can be created either by specifying the keyword
arguments *sender*, *to*, *subject*, and *smtp_server*, or a
``ConfigParser`` object as the keyword argument *config* and the
keyword argument *to*. The section of the ``ConfigParser`` to use
can be set with the keyword argument *section* (and defaults to
"emailreport").
The keyword arguments may also be specified along with a *config*
argument, in which case they override the value in the
configuration file.
The fields in the configuration file are
* email_sender
* email_smtp_server
* email_default_subject
Member Function Documentation
def bbcflib::email::EmailReport::appendBody |
( |
|
self, |
|
|
|
s | |
|
) |
| | |
Append string *s* to the message body.
def bbcflib::email::EmailReport::dump |
( |
|
self |
) |
|
Return a dictionary describing this email.
def bbcflib::email::EmailReport::send |
( |
|
self |
) |
|
Send the email described by this object.
The documentation for this class was generated from the following file:
- /home/rougemon/Data/pipelines/libv2/bbcflib/bbcflib/email.py