diff options
author | Markus Krogh <markus@nordu.net> | 2016-03-10 13:23:40 +0000 |
---|---|---|
committer | Markus Krogh <markus@nordu.net> | 2016-03-10 13:23:40 +0000 |
commit | 72a75a3e454cdf46dcb0a538f5263211f176995b (patch) | |
tree | df452ec5a13a6e1a1bd6e44a7459d64ca2043eb0 /maconomy/mailer.py | |
parent | ab15931fb292b1d39b957b2977e556522fd26ed3 (diff) |
Adding mailer
Diffstat (limited to 'maconomy/mailer.py')
-rw-r--r-- | maconomy/mailer.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |