I have been using PHPMailer for sending mails and it used to work before. Since last few days I am getting the following error. Nothing has changed except maybe the new PHP version installed by the hosting company.
SMTP Error: Could not connect to SMTP host. tls://smtp.gmail.com:587