update reply expedition address, add automatic response preamble (#11133)

This commit is contained in:
Serghei Mihai 2016-06-02 12:25:20 +02:00
parent f30b4bb2a0
commit 22f2b6f3b9
1 changed files with 5 additions and 2 deletions

View File

@ -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.