mtpgwlib.EmailSender
index
/home/klokan/Projects/MarineTrans/opt/mtpgw/lib/mtpgwlib/EmailSender.py

EmailSender module
------------------
Define EmailSender class, which forms correct email message from given
attributes and attach supplied documents.
Class implements method send() which send formed email to all recepients.
 
MTP - Marine Trans Purchasing
Copyright (2005) Klokan Petr Pridal

 
Modules
       
email.Encoders

 
Classes
       
EmailSender

 
class EmailSender
    Form email from given attributes, add headers, main body and
attachments. By calling .send() put the message into SMTP server
(which one is read from config file).
 
  Methods defined here:
__init__(self, from_header, to_header, subject_header)
Initialisation of object
attach(self, data, mimetype='application/octet-stream', filename=None, charset='ascii')
Attach a data to mail
send(self, to, smtpserver='localhost')

 
Functions
       
resendMail(email)
It resends given parsed email to adminMail
sendErrorMail(errormessage, data=False, filename=False, email=None)
Form error email message and send it to adminMail

 
Data
        config = <mtpgwlib.Config.Config instance>