Commit 251a1df6 by Yvon

deploiement : improve mail presentation

parent 9a03e31c
Pipeline #3143 failed with stage
in 1 minute 7 seconds
......@@ -20,18 +20,18 @@ def run(tp_file,od_file,coop):
print("MAIL : rien à envoyer")
return
else:
body = "Cher client, chère cliente,\n"
body = body + "Les évolutions suivantes ont été mises en ligne sur " + ci_secrets.coops_preprod_urls[coop] + ".\n"
body = "Cher client, chère cliente,\n\n"
body = body + "les évolutions suivantes ont été mises en ligne sur " + ci_secrets.coops_preprod_urls[coop] + ".\n"
body = body + "Merci de tester leur fonctionnement et nous faire un retour à assistance-redmine@coopdev.fr avant mise en production" + ".\n\n\n"
if tp_file_exists:
tp_f = open(tp_file,"r")
body = body + "Evolutions des applications tierces :\n\n" + tp_f.read()
body = body + "Evolutions des applications tierces :\n\n" + tp_f.read() + "\n\n"
tp_f.close()
if od_file_exists:
od_f = open(od_file,"r")
body = body + "Evolutions d'odoo :\n\n" + od_f.read()
body = body + "Evolutions d'odoo :\n\n" + od_f.read() + "\n\n"
tp_f.close()
body = body + "\n\nCordialement.\n\n(Ceci est un mail automatique.)"
body = body + "Cordialement.\n\n(Ceci est un mail automatique.)"
msg.set_content(body)
s = smtplib.SMTP('smtp-relay.sendinblue.com', port=587)
s.login("brevo@ksuite-coopdev.fr", ci_secrets.mail_server_password)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment