Back

[SOLVED] Unable to send an email

  • 0
  • Flutter
  • Web
Drake
28 Feb, 2023, 20:00

so, actually, the empty from is fine.

TL;DR
Issue: User is unable to send an email and suspects it may be blocked by spam filters or an issue with the SMTP server. They have checked spam folders and found nothing. They have also followed tutorials to set up SMTP but continue to have issues. Solution: The user discovered that their Sendgrid account was under review and contacted support to resolve the issue. Once the account was reviewed, the problem was resolved and they were able to send emails successfully.
Drake
28 Feb, 2023, 20:00

I don't see _APP_SYSTEM_EMAIL_ADDRESS here

Drake
28 Feb, 2023, 20:00

what's the error you're seeing?

Drake
28 Feb, 2023, 20:01

and lastly, CORS doesn't really have anything to do with mail

iAmaSuperHero
28 Feb, 2023, 20:01
iAmaSuperHero
28 Feb, 2023, 20:02

i cannot debug the appwrite console. however, from within flutter it is "XMLHttpRequest error."

Drake
28 Feb, 2023, 20:05

You're trying to ask about SMTP...were you able to get an email when doing the password recovery in the Appwrite Console?

iAmaSuperHero
28 Feb, 2023, 20:17

the pass is not being sent

Drake
28 Feb, 2023, 20:22

sorry, what is this? are you saying you're not having an SMTP problem?

iAmaSuperHero
28 Feb, 2023, 20:27

i was following the 30daysofAppwrite Tut. it is about setting up smtp. The error is about email not being sent from appwrite console

Drake
28 Feb, 2023, 20:27

where is this error you're referring to?

Drake
28 Feb, 2023, 20:28

Because this screenshot says email sent successfully

iAmaSuperHero
28 Feb, 2023, 20:29

yes it says email sent BUT email is never received.

Drake
28 Feb, 2023, 20:32

Any errors in the mail logs? You shared some of the mail logs above, but not the full logs that would say if the email was sent successfully or not

iAmaSuperHero
28 Feb, 2023, 20:51

this is the network-log.

iAmaSuperHero
28 Feb, 2023, 21:08

so according to the above log - response is 201, 200, ....

Drake
28 Feb, 2023, 21:15

this has nothing to do with the email sent...

Drake
28 Feb, 2023, 21:18

the logs are in docker-compose logs -f appwrite-worker-mails

iAmaSuperHero
1 Mar, 2023, 07:51

docker-compose logs -f appwrite-worker-mails

iAmaSuperHero
1 Mar, 2023, 07:53
Drake
1 Mar, 2023, 07:54

There was no error so, from the Appwrite side, everything is working fine. You may not be receiving the email because of spam filters or something is wrong with the SMTP server

iAmaSuperHero
1 Mar, 2023, 07:58

thanks . i was suspecting that. i have checked the spam and i cannot find the email there as well. Is it possible that email is being blocked even before reaching the spam filters as well? any suggestion to overcome this? many thanks

Drake
1 Mar, 2023, 16:27

Yes, it may be blocked/dropped before it reaches the recipient's inbox and is blocked by the recipient's spam filters.

Sendgrid has some additional steps for setting up your account: https://docs.sendgrid.com/for-developers/sending-email/sender-identity/. Did you make sure to do that?

You can also try following this to test SMTP with sendgrid to make sure it's working: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp

iAmaSuperHero
2 Mar, 2023, 06:55

hi, so the solution happens to be extremely naive. My sendgrid account was under review for some reason. I had to contact the support. Everything was resolved after that.

i cannot believe i spent more then 2 days on fixing it😰

Drake
2 Mar, 2023, 07:06

[SOLVED] Unable to send an email

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