Back

Configuring this smtp

  • 0
  • Tools
bonglv
11 May, 2023, 04:50

Dear appwrite team Has anyone configured it yet please help me, I am also having problems configuring this smtp, I am using microsoft office 365 mail provider and always receive the error: has failed Exception: Error sending mail : SMTP Error: Could not authenticate. print /usr/src/code/app/workers/mails.php:68 but I don't know why, because the account I use to configure I still log in normally Looking forward to everyone's help thank you

TL;DR
The user is asking for help configuring their SMTP. They initially had an issue with the SMTP secure environment variable, but they fixed it. They ask for assistance and suggest using the website gmass.co/smtp-test to test the configuration. There is a mention of an error and a discussion about the values used for the test. The user also asks if they have figured out the correct values and mentions trying different providers like Gmail, Office365, and SendGrid. There is a mention that Office365 may not allow SMTP authentication anymore and asks if the user has tested SMTP authentication through other means. The user also asks if multifactor authentication is enabled
bonglv
11 May, 2023, 04:52

Configuring this smtp

bonglv
11 May, 2023, 04:52

Help me

Drake
11 May, 2023, 05:10

Do you have multifactor authentication enabled?

Drake
11 May, 2023, 05:11

I also heard office 365 doesn't allow SMTP authentication anymore. Have you tested SMTP authentication by some other means?

bonglv
11 May, 2023, 19:05

@Steven I have tried many parties: gmail, office365, sendgrid but all receive the above error can you please help me with this part,

bonglv
11 May, 2023, 19:05
<p>Thanks\n <\/br>\n Appwrite team\n <\/p>\n <\/td>\n <\/tr>\n <\/table>\n <\/td>\n <\/tr>\n <\/table>\n <\/div>\n\n <!-- <div style=\"text-align: center; line-height: 25px; margin: 15px 0; font-size: 12px; color: #40404c;\">\n <a href=\"https:\/\/appwrite.io\" style=\"text-decoration: none; color: #40404c;\">Powered by <img src=\"https:\/\/appwrite.io\/images\/appwrite-footer-light.svg\" height=\"15\" style=\"margin: -3px 0\" \/><\/a>\n <\/div> -->\n <\/td>\n <td>&nbsp;<\/td>\n <\/tr>\n <\/table>\n<\/body>\n\n<\/html>","events":["."]}]) has failed Exception: Error sending mail: SMTP Error: Could not authenticate. in /usr/src/code/app/workers/mails.php:68
Drake
11 May, 2023, 19:34

You can use some tool like

https://www.gmass.co/smtp-test

Or https://www.smtper.net/ to test and figure out what values you need to use

bonglv
12 May, 2023, 03:06

oh thank so much

bonglv
13 May, 2023, 15:14

sorry

bonglv
13 May, 2023, 15:14

t test by tool done

Drake
13 May, 2023, 15:15

So did you figure out the right values?

bonglv
13 May, 2023, 15:15
bonglv
13 May, 2023, 15:15
bonglv
13 May, 2023, 15:15

error

Drake
13 May, 2023, 15:16

You put the same values as in the test tool?

What about the _APP_SYSTEM_EMAIL_ADDRESS environment variable?

bonglv
13 May, 2023, 15:18
bonglv
13 May, 2023, 15:18

Can you remote check the config for me?

Drake
13 May, 2023, 15:22

DM me what you used for this test

bonglv
13 May, 2023, 15:24

I have sent you a private ibox, can you please check it for me?

bonglv
13 May, 2023, 15:24
bonglv
13 May, 2023, 15:28

help me

bonglv
13 May, 2023, 15:54

thank you i fix done

Drake
13 May, 2023, 15:56

The problem was the SMTP secure environment variable needed to be tls rather than TLS

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more