From 544019cdb0e95032d707cd1609b92be5f7717025 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 4 May 2016 01:04:48 +0200 Subject: [PATCH] trivial: typo fixes --- mail2redmine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail2redmine.py b/mail2redmine.py index 8501b05..ad58cd2 100644 --- a/mail2redmine.py +++ b/mail2redmine.py @@ -52,11 +52,11 @@ def parse_attachment(data): def send_mail(to, subject, message): s = smtplib.SMTP('localhost') from_mail = 'redmine@entrouvert.com' - msg = email.mime.text.MIMEText(message, 'plain', 'utf-8') + msg = email.mime.Text.MIMEText(message, 'plain', 'utf-8') msg['From'] = from_mail msg['To'] = to msg['Subject'] = subject - s.sendmail(from_email, to, msg.as_string()) + s.sendmail(from_mail, to, msg.as_string()) s.quit()