summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-05-03 23:04:48 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-05-04 07:34:51 (GMT)
commit544019cdb0e95032d707cd1609b92be5f7717025 (patch)
treeb5c3e6c4133a6c2018a1f9131abd8fb3cf61cbea
parentb338bd3cac33953418241e0bf8e51e99ebc34dc5 (diff)
downloadmail2redmine-544019cdb0e95032d707cd1609b92be5f7717025.zip
mail2redmine-544019cdb0e95032d707cd1609b92be5f7717025.tar.gz
mail2redmine-544019cdb0e95032d707cd1609b92be5f7717025.tar.bz2
trivial: typo fixes
-rw-r--r--mail2redmine.py4
1 files 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()