From 72a75a3e454cdf46dcb0a538f5263211f176995b Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Thu, 10 Mar 2016 13:23:40 +0000 Subject: Adding mailer --- maconomy/mailer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maconomy/mailer.py') diff --git a/maconomy/mailer.py b/maconomy/mailer.py index ab443c0..4f4070f 100644 --- a/maconomy/mailer.py +++ b/maconomy/mailer.py @@ -7,8 +7,8 @@ class Mailer: server_addr = config.get("mail", "server") self.server = smtplib.SMTP(server_addr) - def send(to, subject, body): - msg = MIMEText(body,'plain') + def send(self, to, subject, body): + msg = MIMEText(body,'html') msg['To']=to msg['From']=self.me msg['Subject'] = subject -- cgit v1.1