I have 2 cwp servers.
I have email created in 1 server.
phpmailer code works fine
When I use the same code in my second server and try to connect to smtp of 1st server, I get
SMTP ERROR: Failed to connect to server: Connection refused (111)
I have tried ssl with 465 and tls with 465
I have tried my hostname as well as domain name as server address
I have opened both 465 and 587 in incoming as well as outgoing TCP ports
What am I missing?