arsalahmed786 Posted November 23, 2018 Share Posted November 23, 2018 Hey, I Couldn't able to receive mail from WHMCS neither SMTP nor PHPmail, first i was using phpmail it was fine i don't know what happen then it stop working and i tried gmail smtp, 3rd parties server and always fail Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: {Mail subject}) I'm using PHP 5.6 i think problem is in version of PHP let me know which package i should select for this version or i have to change version. Let me know if you want any further information. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 24, 2018 Share Posted November 24, 2018 Hey @arsalahmed786 Check the error logs under Utilites > Logs > Actvity log, you can also get more infor on the SMTP Error by using these steps Sometimes the error output in the Activity Log when sending of emails via SMTP fails can lack verbosity or the underlying cause may be different from the message that is ultimately displayed. Adding the following line to the configuration.php file will output a lot of debugging information when a mail is being sent manually, provided the Setup > General Settings > Mail tab > Mail Type is SMTP: $smtp_debug = true; After sending an email manually, the interaction between your server and the email server will be displayed on-screen for debugging purposes. Once finished, be sure to revert the change to the configuration.php file. 0 Quote Link to comment Share on other sites More sharing options...
arsalahmed786 Posted November 24, 2018 Author Share Posted November 24, 2018 First of all thanks for the reply, i didn't added "$smtp_debug = true;" just change ports and it fine now Thanks, now i'm using port 443 for SSL but thanks for your help, just want to know if it added "$smtp_debug = true;" on configuration.php file then it will debug the problem? or show the entire logs? just want to know if in case if i have face that problem again. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted November 25, 2018 Share Posted November 25, 2018 Glad to hear you got it sorted @arsalahmed786 ! 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.