SMTP Error: Could not connect to SMTP host.

SMTP Error: Could not connect to SMTP host.

hello sir,  

my domain is excellencetally.com  and i have to configure mail service in my site . i did all set up but . smtp error occured
2019-12-09 08:29:28 Connection: opening to smtp.zoho.com:465, timeout=300, options=array ( ) 2019-12-09 08:29:28 Connection: opened 2019-12-09 08:34:28 SMTP -> get_lines(): $data is "" 2019-12-09 08:34:28 SMTP -> get_lines(): $str is "" 2019-12-09 08:34:28 SMTP -> get_lines(): timed-out (300 sec) 2019-12-09 08:34:28 SERVER -> CLIENT: 2019-12-09 08:34:28 CLIENT -> SERVER: EHLO localhost 2019-12-09 08:34:28 SMTP -> get_lines(): $data is "" 2019-12-09 08:34:28 SMTP -> get_lines(): $str is "" 2019-12-09 08:34:28 SERVER -> CLIENT: 2019-12-09 08:34:28 SMTP ERROR: EHLO command failed: 2019-12-09 08:34:28 SMTP NOTICE: EOF caught while checking if connected 2019-12-09 08:34:28 Connection: closed 2019-12-09 08:34:28 SMTP Error: Could not connect to SMTP host. 2019-12-09 08:34:28 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting.

My Script is  below


$body.="";
    $mail = new PHPMailer;
    $mail->SMTPDebug = 4;                               // Enable verbose debug output
    $mail->isSMTP();                                      // Set mailer to use SMTP when (LOCAL and SERVER)
    $mail->Host = 'smtp.zoho.com';  // Specify main and backup SMTP servers
   // Specify main and backup SMTP servers
   $mail->SMTPAuth = true;                               // Enable SMTP authentication
    $mail->Username = 'zameer@excellencetally.com';                 // SMTP username
    $mail->Password = '********';                           // SMTP password
     $mail->SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
    $mail->Port = 465;                                    // TCP port to connect to
    $email="danish.8bit@gmail.com";
    $mail->setFrom('zameer@excellencetally.com''Excellence Tally');
    $mail->addAddress($email'User');     // Add a recipient
    //$mail->addAttachment($download);         // Add attachments
    //$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
    $mail->isHTML(true);                                  // Set email format to HTML
    
    $mail->Subject = 'Enquiry Has Been Arrive';
    $mail->Body    = $body ;
 //   $mail->AltBody = '';
    
    if(!$mail->send()) {
      echo 'Message could not be sent.';
      echo 'Mailer Error: ' . $mail->ErrorInfo;
    } else {
      echo 'E-Mail has been sent';
      }