zitu4life Posted July 14, 2019 Share Posted July 14, 2019 Hi all After performed a full migration cpanel backup\restore, and updated domain nameservers, also updated cron jobs and pop. Everything works fine and only email issues... First i ask new host provider to open external SMTP. I just realized that WHMCS can just send all email to clients (payment reminder, overdue, auto backup emails,etc, etc) But if I try to send an manual email it pronts an error, exmple of steps done: - choose one cliente and on summary page try to send an client email Welcome. This is the error after ativated $smtp_debug='true'; on config file. 2019-07-14 10:34:02 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array ()2019-07-14 10:34:03 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) [/home/cpnalelusername/public_html/vendor/phpmailer/phpmailer/class.smtp.php line 298]2019-07-14 10:34:03 SMTP ERROR: Failed to connect to server: Network is unreachable (101)SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting If crons email works what could be???? Emails is from google GSuite, is could be related to MX records?? 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted July 14, 2019 Share Posted July 14, 2019 It's very likely that it could be related to MX records. Have you checked them at mxtoolbox.com ? Are you configured to send using SMTP vs. PHP Mail() found under Setup > General Settings > Email 0 Quote Link to comment Share on other sites More sharing options...
zitu4life Posted July 14, 2019 Author Share Posted July 14, 2019 @EvolveWebHosting thanks for help but still with same problem.... WHMCS can send emails with SMTP during cron automated tasks with no problems. Manual email send from WHMCS do not work. PS: If WHMCS can send emails on cron daily automated tasks using SMTP, I guess it means that we can conclude that external SMTP are opened like host provider confirm. i have setup google MX records on WHM but still have same problem. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted July 15, 2019 Share Posted July 15, 2019 @zitu4life I can see the following error shows in the SMTP Debug SMTP ERROR: Failed to connect to server: Network is unreachable (101) This error is indication of a network / connectivity issue between the server and the SMTP destination. To help you diagnose and troubleshoot your system, please login to your servers terminal window and execute the following command dig +short smtp.gmail.com This test will verify your server can resolve the SMTP hostname to ensure your resolvers are properly configured. If your resolvers are working (finding and going to the correct IP address) then do a telnet in the command prompt window. telnet smtp.gmail.com 587 This test will perform a connection attempt to the destination SMTP server (Gmail in your case) please send the response back to us and we can dig into this further for you. 0 Quote Link to comment Share on other sites More sharing options...
zitu4life Posted July 15, 2019 Author Share Posted July 15, 2019 Many Thanks @WHMCS Community WHMCS Support also advice me same. and after that my current hosting provider was able to find problem and solved it with their advanced specialist team. So, problem were always with hosting, and sometimes they say everything fine from their side. Problem fixed. Thank you for your patience.Our Operations team has indeed opened up SMTP for outbound connections on the VPS. Please let us know if you need any further assistance.Please do not hesitate to ask if you have any other questions or concerns.Best Regards, 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted July 19, 2019 Share Posted July 19, 2019 Glad to hear you got to the bottom of it @zitu4life! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.