Package moap :: Package util :: Module mail :: Class Message
[hide private]
[frames] | no frames]

Class Message

source code

I create e-mail messages with possible attachments.

Instance Methods [hide private]
 
__init__(self, subject, to, fromm) source code
 
setContent(self, content) source code
 
addAttachment(self, name, mime, content) source code
 
get(self)
Get the message.
source code
 
send(self, server='localhost') source code
Method Details [hide private]

__init__(self, subject, to, fromm)
(Constructor)

source code 
Parameters:
  • to (string or list of strings) - who to send mail to
  • fromm (string) - who to send mail as