Commit b247f412 by Yvon

deploiement : allow sending email

parent 847f28a9
Pipeline #3141 failed with stage
in 1 minute 7 seconds
...@@ -33,10 +33,6 @@ def run(tp_file,od_file,coop): ...@@ -33,10 +33,6 @@ def run(tp_file,od_file,coop):
tp_f.close() tp_f.close()
body = "\n\nCordialement.\n\n(Ceci est un mail automatique.)" body = "\n\nCordialement.\n\n(Ceci est un mail automatique.)"
msg.set_content(body) msg.set_content(body)
print("don't send !!")
return
s = smtplib.SMTP('smtp-relay.sendinblue.com', port=587) s = smtplib.SMTP('smtp-relay.sendinblue.com', port=587)
s.login("brevo@ksuite-coopdev.fr", ci_secrets.mail_server_password) s.login("brevo@ksuite-coopdev.fr", ci_secrets.mail_server_password)
s.send_message(msg) s.send_message(msg)
......
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