the local PHP mail client always tries TLS AUTH SMTP, but if it fails there is nothing in this script to switch it off. Adding these two line to the two functions will switch it off if your SMTP does not use TLS. It's not a clean solution but it works.
the local PHP mail client always tries TLS AUTH SMTP, but if it fails there is nothing in this script to switch it off. Adding these two line to the two functions will switch it off if your SMTP does not use TLS. It's not a clean solution but it works.
$mail->SMTPSecure = false; $mail->SMTPAutoTLS = false;