Back

Email SMTP configuration

  • 0
  • Android
  • Accounts
  • Users
D5
26 Apr, 2023, 06:53

Try sendgrid if nothing works

TL;DR
User is having trouble configuring SMTP with Microsoft Office 365 mail provider. They receive an error stating "SMTP Error: Could not authenticate" even though their account is still log-in normally. Another user suggests using an SMTP provider like Mailrelay and verifies that the error may be due to not verifying the email in the provider. Additionally, someone recommends using Sendgrid as an official SMTP provider and reminds the user to set up all EMAIL_ADDRESS variables and run the rebuild command.
D5
26 Apr, 2023, 06:53

Also don't forget to setup all EMAIL_ADDRES variables to sendgrid's email, and run the rebuild command every time you change variables

asapsonter
26 Apr, 2023, 06:56

ok Thanks,I will look it up

D5
28 Apr, 2023, 12:12

Hey @asapsonter have you managed to solve it?

frankenstein
2 May, 2023, 22:06

Hello, I think Gmail smtp was shut down. Trying using official smtp provider like sendgrid

asapsonter
4 May, 2023, 02:12

no.

asapsonter
4 May, 2023, 02:13

I see why. I will try outlook or the appwrite cloud_beta smtp

asapsonter
4 May, 2023, 02:21

I just tried settings up Appwrite from Cloud_beta console. I tested getting verification email, when I click on the verification link, It redirects me to my dashboard :appwrite: . @joeyouss

Drake
4 May, 2023, 02:23

What did you put for the redirect URL?

hortigado
4 May, 2023, 02:27

Use an smtp provider like mailrelay. In my case it gave me an error because I had not verified my email in the provider and I was using that email in appwrite

hortigado
4 May, 2023, 02:27
asapsonter
4 May, 2023, 02:27

I just clicked on the linked received from the sign up email. it shows a 404 for sec and the redirects back to my dashboard

hortigado
4 May, 2023, 02:27

there you can see the cause of why you do not receive the mail

Drake
4 May, 2023, 02:30

In the create recovery api call. You need to pass a url of something that will receive the recovery secret and finish the flow

asapsonter
4 May, 2023, 02:32

oh yes, the field is https://cloud.appwrite.io/v1

Drake
4 May, 2023, 02:32

No, that won't work

asapsonter
4 May, 2023, 02:33

ok, do i have to create a custom URL/sendgrid for that ?

asapsonter
4 May, 2023, 02:38

ok

Drake
4 May, 2023, 02:38

One option is to set up deep linking to link the user back to your app where you can finish the password recovery

Drake
4 May, 2023, 02:39

Another option is to set up an HTML page

asapsonter
4 May, 2023, 07:08

ok

bonglv
11 May, 2023, 00:41

Sorry. 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 @Core

Drake
11 May, 2023, 00:42

Please don't tag core and it's best to create a separate <#1072905050399191082> post

bonglv
11 May, 2023, 04:52

sorry

Drake
11 May, 2023, 04:59

No worries!

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