PHP Contact form - failure to connect to zoho

PHP Contact form - failure to connect to zoho

Hello,
I'm just finishing a bootstrap website that includes a php contact form. I'm trying to send my mail to my zoho account from the contact form, but I keep getting this message: ' Failed to connect to ssl://smtp.zoho.com:465 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]'

I've pasted below the contact.php code that the template developer included. If anyone could help me figure out the correct settings to use to send to zoho, I'd be very grateful. Thank you.

<?php

require_once "Mail.php";
// Change this options:
$username = ' user@gmail.com';
$password = 'password';
$smtpHost = 'ssl://smtp.gmail.com';
$smtpPort = '465';
$to = ' user@gmail.com';
$from = ' user@gmail.com';

$subject = 'Contact Form';
$successMessage = 'Message successfully sent!';

$replyTo = $_POST['your-email'];
$name = $_POST['your-name'];
$body = $_POST['your-message'];

$headers = array(
'From' => $name . " <" . $from . ">",
'Reply-To' => $name . " <" . $replyTo . ">",
'To' => $to,
'Subject' => $subject
);
$smtp = Mail::factory('smtp', array(
'host' => $smtpHost,
'port' => $smtpPort,
'auth' => true,
'username' => $username,
'password' => $password
));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo($mail->getMessage());
} else {
echo($successMessage);
}
?>