iro/anbieter/content.py
changeset 58 fb161058bcab
parent 57 97ef6ca145e6
child 62 35228d665310
--- a/iro/anbieter/content.py	Thu Nov 04 21:57:51 2010 +0100
+++ b/iro/anbieter/content.py	Thu Nov 04 21:58:59 2010 +0100
@@ -45,15 +45,18 @@
         return self.attachments[i]
 
 class Mail(content):
-    def __init__(self, subject, body):
+    def __init__(self, subject, body, frm):
         con=MIMEText(body.encode("utf-8"), _charset='utf-8')
         sub=Header(subject.encode('utf-8'), 'utf-8')
         con['Subject']=sub
+        self.frm=frm
         content.__init__(self, con)
-  
+
     def sendto(self,anbieter,recipients):
         anbieter.sendMail(self,recipients)
 
     def as_string(self):
         return self.content.as_string()
-        
+
+    def getFrom(self):
+        return self.frm