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)
s = SMTP()
s.connect()
- s.close()
rejected = s.sendmail(
from_addrs[0], to_addrs,
msg.as_string(), rcpt_options=["NOTIFY=NEVER"])
+ s.quit()
if rejected:
raise PLCAPIError("Error sending message to "