Problem in connecting via SMTP

Problem in connecting via SMTP

Hi there,

I am having problem in sending emails. It is not working at all.Below are the details I am using :-

$mail->Host = 'smtp.zoho.com';
$mail->Port = 587;
$mail->SMTPAuth = true;

Here is the detailed message that I got on debugging:-

Invalid address: <br>
SERVER -&gt; CLIENT: 220 mx.zohomail.com SMTP Server ready March 30, 2016 9:50:13 PM PDT<br>
CLIENT -&gt; SERVER: EHLO 52.74.107.97<br>
SERVER -&gt; CLIENT: 250-mx.zohomail.com Hello 52.74.107.97 (ec2-52-74-107-97.ap-southeast-1.compute
.amazonaws.com (52.74.107.97))250-STARTTLS250 SIZE 53477376<br>
CLIENT -&gt; SERVER: QUIT<br>
SERVER -&gt; CLIENT: 221 mx.zohomail.com closing connection<br>
SMTP connect() failed.


Any help would be highly appreciated. Thanks in advance !