trivial: typo fixes

This commit is contained in:
Serghei Mihai 2016-05-04 01:04:48 +02:00
parent b338bd3cac
commit 544019cdb0
1 changed files with 2 additions and 2 deletions

View File

@ -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()