SMTP Error: Failed to connect to server: Connection refused (111)
I know this has been an ongoing issue with many related topics/issues posted; However, I am still receiving this error after searching through countless boards and consulting the PHPMailer documentation. I am using a Linux CPanel hosting for my site and have two different contact forms, both using PHPMailer (one of which offers attachments). Both are returning the same error.
The following is my php code for the form with attachments: