From 22f2b6f3b9165bbdb703c625a50c70f5698c4b91 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Thu, 2 Jun 2016 12:25:20 +0200 Subject: [PATCH] update reply expedition address, add automatic response preamble (#11133) --- mail2redmine.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mail2redmine.py b/mail2redmine.py index 23976b0..c014a7a 100644 --- a/mail2redmine.py +++ b/mail2redmine.py @@ -53,7 +53,7 @@ def parse_attachment(data): def send_mail(to, subject, message): s = smtplib.SMTP('localhost') - from_mail = 'redmine@entrouvert.com' + from_mail = 'noreply@entrouvert.com' msg = email.mime.Text.MIMEText(message, 'plain', 'utf-8') msg['From'] = from_mail msg['To'] = to @@ -101,7 +101,10 @@ def create_ticket(mail): issue.assigned_to_id = tech_manager.id issue.save() - message = u"""Bonjour, + message = u"""[ Ce courriel est envoyé par un automate. Merci de ne pas y répondre, votre message ne serait pas pris en compte. ] + + +Bonjour, Votre demande a bien été prise en compte et enregistrée dans notre système sous le numéro %s.