Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP configuration error #520

Open
willharwell opened this issue Sep 20, 2024 · 10 comments
Open

SMTP configuration error #520

willharwell opened this issue Sep 20, 2024 · 10 comments

Comments

@willharwell
Copy link

Using the test button while configuring SMTP settings results in the following error:

Error
SyntaxError: Unexpected token '<', "
"... is not valid JSON

I'm using Docker compose.
Folders are created by docker and owned by user and group 82. Internal folders are owned by user and group www-data.
Everything else seems to be working as expected.

@GOUKI9999
Copy link

same error in Docker
SyntaxError: Unexpected token '<', "
"... is not valid JSON
seems not a password wrong or other

@ellite
Copy link
Owner

ellite commented Sep 23, 2024

Hi. Sorry for the delay.
I have to find a way to have it show the actual error there.

Can you open the developer tools, go to the network tab, try again to press the test button. Clink on the call that is failing and it shows some info on the right side. If you click on the Response panel, it should show the actual error.

The two errors I see often are:

  • using your Gmail password when you should be using an app password that you can create on your Google account.
  • using an SMTP service that requires the "from email" field to be filled.

Regards.

@GOUKI9999
Copy link

/scripts/notifications.js?v2.24.0

yep I opened the developer tools ,but nothing in console ,I found only thing is stucking at
/endpoints/notifications/testemailnotifications.php
image

@ellite
Copy link
Owner

ellite commented Sep 23, 2024

Please click the testemailnotifications.php on that list and then click on response. The error should be visible there.

@willharwell
Copy link
Author

willharwell commented Sep 23, 2024 via email

@ellite
Copy link
Owner

ellite commented Sep 23, 2024

Exception: SMTP Error:
Could not authenticate

Please verify that the username and password are correct.
Also, you can try to add your email address to the last field on that form ("from email"), in case office365 requires it.

@willharwell
Copy link
Author

I was using the wrong username. Thanks for the help.

@GOUKI9999
Copy link

yap I got a error of authenticate,it's very stange, cause of I using my In App Password for my hotmail smtp ,but I checked the setting of every domin port useranme and password and found they're all correct.
when I changed to other SMTP service , the error was gone..
Anyway thanks very much :)

@ACnoway
Copy link

ACnoway commented Oct 3, 2024

I met the same error, found out that if you are using onmicrosoft.com or outlook.com you may need to fill in the "from email" field with the email you are using

@homopanda
Copy link

Same here as ACnoway, using Proton as smtp. If i kept the from address blank it gave me that error, if I filled out the optional from address it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants