As very well exampled by @joydesigner, To connect via SMTP, you will need to pass hostname, username and password
and then it should connect and send email.
$mail->Host = 'smtp1.example.com;smtp2.example.com'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'jswan'; // SMTP username
$mail->Password = 'secret'; // SMTP password
$mail->SMTPSecure = 'tls'; // tls or ssl connection as req
Here I see you have passed only, host
information, pls add username & password
as well and try once.
Also check that TLS/SSL PORT
is open for your server:
check with:
telnet resolver1.opendns.com 25