Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
251a1df6
Commit
251a1df6
authored
Nov 20, 2023
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploiement : improve mail presentation
parent
9a03e31c
Pipeline
#3143
failed with stage
in 1 minute 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
send_mail.py
scripts/src/send_mail.py
+5
-5
No files found.
scripts/src/send_mail.py
View file @
251a1df6
...
...
@@ -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
+
"
L
es é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
+
"
l
es é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\n
Cordialement.
\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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment