I am trying to get this to work:import smtplib
from smtplib import SMTP_SSL as SMTP
import datetime
HOST = "xyz.enterprise.xyz.com"
PORT = 25
FROM = "xyz.xyz@xyz.com"
TO = ["xyz.xyz@xyz.com"]
SUBJECT = "Test"
BODY = "Success"
BODY = BODY + "!"
smtp = smtplib.SMTP(HOST,PORT)
smtp.connect(HOST, PORT)
smtp.login("xyz\xyz", "xyz")
smtp.ehlo()
smtp.sendmail(FROM,TO,body)
smtp.quit()
server.set_debuglevel(0)But I keep getting the following error:[Errno 10054] An existing connection was forcibly closed by the remote hostCan't see anything obvious I'm doing wrong. Any ideas? Thanks.