I am reposting this post as “new” as I hope to catch the developer attention to the long lasting SMTP issue. I have posted it in another similar topic.
Me too experiencing the same problem. I have installed 5.8 and now I have installed a fresh copy of 7.9.5. Both versions I experienced the same issue.
I am not here to continue complaining about the issue but I hope to provide my findings to allow the developers to look into it and I hope the developer can fix this long lasting issue.
When I setup, with the php-smtp installed on my Centos 7 server, everything went through fine without any issue. When I setup the SMTP for my gmail account, here is what I have found:
I clicked on the “Gmail”, Entered the FROM Name and FROM Address, the SMTP Mail Server, SMTP Port, Use SMTP Authentication and Enable SMTP over SSL or TLS. Then I entered the Username and Password. Followed by “SEND TEST MAIL”. I entered my email ID and click send. It went through without problem and I verified and confirmed I received the test mail in my mail box.
I proceed to Save the settings. Then I went to other tabs and then came back to the Email test by “Admin–>Email Settings”. I repeat the test and I hit the errot “SMTP Error:connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting”.
I then click on the password and re-enter the email password and retry the SEND TEST EMAIL. Bingo, the test mail went through.
I get out of the screen and repeat the SEND TEST EMAIL. I noted that the email will go thru without error if I re-enter the password, . If I don’t re-enter the password, I will hit the error.
I tried on “Choose your Email provider Other” and it behaved the same.
In this simple conclusion, my guess is that SuiteCRM email setting does not save the password entered. Therefore, after the email setup, without the password, all the users will hit the “SMTP Error:connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting” issue.
I hope my feedback help. Unfortunately, I’m not a programmer and I don’t know how this problem could be fixed.