It seems like pythonanywhere.com is blocking outgoing emails. Can you please check why its happening since we did not change anything off late.
raise SMTPServerDisconnected("Connection unexpectedly closed") smtplib.SMTPServerDisconnected: Connection unexpectedly closed