use a configurable address as the From: when sending a mail
[plcapi.git] / 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)