So i Install Suite CRM.
On my cpanel i setup a email account and attempted to link it to Suite Crm and i got this error:
3: Connection: opening to ssl://mail.batterypowered.co.za:465, timeout=300, options=array()
3: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://mail.batterypowered.co.za:465 (No route to host) [/home/battewye/public_html/suitecrm/vendor/phpmailer/phpmailer/src/SMTP.php line 379]
1: SMTP ERROR: Failed to connect to server: No route to host (113)
3: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I looked at a few local forums and it says upgrade your PHP.
Any reason for using such an old version? Back at that version, you have no security or even many of the improvement SuiteCRM is known for. PHP73 supports our latest version found here - https://suitecrm.com/download/
So we have done the update and the Diagnostics says the PHP is on PHP Version 7.3.25 but when setting up email i still have the following error :
3: Connection: opening to ssl://mail.batterypowered.co.za:465, timeout=300, options=array()
3: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://mail.batterypowered.co.za:465 (No route to host) [/home/battewye/public_html/suitecrm/vendor/phpmailer/phpmailer/src/SMTP.php line 374]
1: SMTP ERROR: Failed to connect to server: No route to host (113)
3: SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
You can see that the error message denotes a network connectivity problem.
You need to check not that just that your mail server is up, but that your SuiteCRM server can access it. This is network configuration, it has to do with DNS settings, firewalls, etc.