As @joydesigner can clearly see, to connect via SMTP you need to go through hostname, username and password , and then it must connect and send an 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 that you just passed the host information, add another username & password and try once.
Also check that TLS/SSL PORT open for your server:
check:
telnet resolver1.opendns.com 25
user2865746
source share