git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65bbb7d
)
use a configurable address as the From: when sending a mail
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 3 Nov 2023 13:07:27 +0000
(14:07 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 3 Nov 2023 13:07:27 +0000
(14:07 +0100)
this is to cope with recent changes in the deployment of SPF, including at google
PLC/sendmail.py
patch
|
blob
|
history
diff --git
a/PLC/sendmail.py
b/PLC/sendmail.py
index
d4a0a2a
..
a215dc2
100644
(file)
--- a/
PLC/sendmail.py
+++ b/
PLC/sendmail.py
@@
-35,7
+35,7
@@
def sendmail(api, To, Subject, Body, From=None, Cc=None, Bcc=None):
Bcc = [Bcc]
if From is None:
From = ("%s Support" % api.config.PLC_NAME,
- api.config.PLC_MAIL_
SUPPORT
_ADDRESS)
+ api.config.PLC_MAIL_
FROM
_ADDRESS)
# Create a MIME-encoded UTF-8 message
msg = MIMEText(Body)