I have been experiencing this bug for a long time, and I’ve tried a lot for troubleshooting tips, but it did not bring any effect, but I found out that most of the bugs came from the hosting provider, or between Suitecrm and email providers.
A suggestion for me and for you (now I have created Hosting email account right on own hosting or shared hosting) instead of using 3rd party (gmail, yandex, yahoo, or …) it works very correctly and no longer reports error. Restrictions of Email hosting are (easy spam error, limited number of send out, limited email marketing, …) This solution is the fastest solution to your problem.
I fixed using Google Account App passwords
This person explain well to generate app password and use this one instead of your real password https://youtu.be/4TmD4ly7V_E?t=166
Then I updated all below
SuiteCRM \ Outgoing Mail Configuration \ Email Settings
SMTP Mail Server: smtp.gmail.com
SMTP Port: 587
Use SMTP Authentication: check
Enable SMTP over SSL or TLS: TLS check
Gmail Email Address: myemail@gmail.com
Gmail Password: *** *** use the one from Google Account App passwords
Users may send as this account’s identity check
TO TEST EMAIL USING ANOTHER SMAPP APP USING XAMPP EMAIL
MANUAL TEST CONFIGURATION TO SEE IF YOU CAN OUTPUT EMAILS
D:\xampp\sendmail\sendmail.ini
[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=tls
error_logfile=error.log
debug_logfile=debug.log auth_username=myemail@gmail.com
auth_password=vkaz kfhe qdze msnw force_sender=myemail@gmail.com force_recipient=myemail@gmail.com
hostname=
***where auth_password is the Google Account App passwords
MANUAL TEST
pushd in cmd to D:\xampp\sendmail @ECHO OFF
REM send email from command line via SMTP with sendmail
ECHO From: myemail@gmail.com > %TEMP%\temp.mail
ECHO To: myemail@gmail.com >> %TEMP%\temp.mail
ECHO Subject: this is a test >> %TEMP%\temp.mail
ECHO.>> %TEMP%\temp.mail
ECHO testing. >> %TEMP%\temp.mail
ECHO blah blah… >> %TEMP%\temp.mail
ECHO.>> %TEMP%\temp.mail
ECHO blah. >> %TEMP%\temp.mail
sendmail -t < %TEMP%\temp.mail
DEL %TEMP%\temp.mail