The cause of this error is the server unexpectedly disconnecting or attempting to use the SMTP instance without connecting it to a server.
If you are not using TLS already, switch to authenticated connection with TLS and ensure the port is 587. And go through the SMTP configurations and check whether you have declared valid variables.
Check and re-verify the protocol, the port, and the host.
View all errors