Called Mail() without being connected
In my website, I use phpmailer to send email with mail server smtp.gmail.com. But it fails in connection and return error message "Called Mail() without being connected". The authentication information should be correct. Anyone have idea about this problem?
-
You might want to check to see if the outgoing mail port you are using is open in your firewall, and if you are trying to use port 25, you might use a different one that google supports. 0 -
You might want to check to see if the outgoing mail port you are using is open in your firewall, and if you are trying to use port 25, you might use a different one that google supports.
I cannot find blocking of ports in CPanel.0 -
Look in WHM in plugins and see if you have ConfigServer Firewall installed. 0 -
You wouldn't be able to find that in cPanel, as noted by @GOT you need to ensure the ports you have listed in PHPMailer are open in the firewall, if you're using CSF you can do this through the UI in WHM otherwise you'll need to check iptables via the CLI. You might also ensure that the protocol you've selected in phpmailer matches the port you're using. For example if you're using port 465 for SMTP the protocol should be SSL instead of TLS 0
Please sign in to leave a comment.
Comments
4 comments