--- a/iro/anbieter/content.py Sun Nov 22 22:14:07 2009 +0100
+++ b/iro/anbieter/content.py Mon Nov 23 00:18:04 2009 +0100
@@ -12,6 +12,7 @@
#along with this program; if not, see <http://www.gnu.org/licenses/>.
from email.mime.text import MIMEText
+from email.header import Header
class content:
def __init__(self,content):
@@ -38,8 +39,9 @@
class Mail(content):
def __init__(self, subject, body):
- con=MIMEText(body)
- con['Subject']=subject
+ con=MIMEText(body.encode("utf-8"), _charset='utf-8')
+ sub=Header(subject.encode('utf-8'), 'utf-8')
+ con['Subject']=sub
content.__init__(self, con)
def sendto(self,anbieter,recipients):