use a configurable address as the From: when sending a mail
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 3 Nov 2023 13:07:27 +0000 (14:07 +0100)
committerThierry 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

index d4a0a2a..a215dc2 100644 (file)
@@ -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)