ellite / Wallos

Wallos: Open-Source Personal Subscription Tracker
GNU General Public License v3.0
2.58k stars 117 forks source link

SMTP configuration error #520

Open willharwell opened 1 week ago

willharwell commented 1 week ago

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 commented 5 days ago

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

ellite commented 5 days ago

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 commented 5 days ago

/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 commented 5 days ago

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

willharwell commented 5 days ago


Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not authenticate. in /var/www/html/libs/PHPMailer/PHPMailer.php:2223 Stack trace:

0 /var/www/html/libs/PHPMailer/PHPMailer.php(2023):

PHPMailer\PHPMailer\PHPMailer->smtpConnect(Array)

1 /var/www/html/libs/PHPMailer/PHPMailer.php(1682):

PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Mon, 23 S...', 'This is a test ...')

2 /var/www/html/libs/PHPMailer/PHPMailer.php(1516):

PHPMailer\PHPMailer\PHPMailer->postSend()

3 /var/www/html/endpoints/notifications/testemailnotifications.php(69):

PHPMailer\PHPMailer\PHPMailer->send()

4 {main}

thrown in /var/www/html/libs/PHPMailer/PHPMailer.php on line 2223

On Mon, Sep 23, 2024 at 7:38 AM Miguel Ribeiro @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/ellite/Wallos/issues/520#issuecomment-2368094750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5QMVYHH75NGMTELRQYUW3ZYADU5AVCNFSM6AAAAABORX5HZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGA4TINZVGA . You are receiving this because you authored the thread.Message ID: @.***>

ellite commented 5 days ago
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 commented 5 days ago

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

GOUKI9999 commented 3 days ago

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 :)