SMTP Error: Could not authenticate.

Hello,

I’m unable to send any mails using the integratet mail client.
IMAP and SMPT are working from the user panel, where you can send a test mail.

Log entry: SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.

(Setting to “External Mail client” does not anything, see -> https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/21155-external-mail-client)

I needed to store my login details 5 times. It got overwritten with other data

There are several steps to debug this issue.
If this is your gmail account , you may need to take these steps.

  1. Allow Low secure Apps
    if not worked.
  2. Unlock Captcha.

Additionally switching between SSL / TLS also helps.

1 Like

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.

1 Like

I have the same problem, with my fresh install.
One user was able to send and receive messages.
Admin has outgoing normal.
But everything else failed.

1 Like

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

PHP.INI
    [mail function]
        SMTP=smtp.gmail.com
        smtp_port=587
        sendmail_from = myemail@gmail.com
        sendmail_path = "d:\xampp\sendmail\sendmail.exe -t"

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