SyntaxFix
Write A Post
Hire A Developer
Questions
In my case the web server IP was blocked on the mail server, it needs to be unblocked by your hosting company and make it whitelisted. Also, use port port 587.