Back

Error sending email

  • 0
  • Web
elnur
24 Oct, 2023, 20:14

Error:

Error sending mail: The following From address failed: team@appwrite.io : MAIL FROM command failed,,0,SMTP server error: MAIL FROM command failed appwrite-worker-mails | [Error] Type: Exception appwrite-worker-mails | [Error] Message: Error sending mail: The following From address failed: team@appwrite.io : MAIL FROM command failed,,0,SMTP server error: MAIL FROM command failed appwrite-worker-mails | [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Mails.php appwrite-worker-mails | [Error] Line: 88

These variables have been changed in .env

_APP_SMTP_HOST=smtp.sendgrid.net _APP_SMTP_PORT=587 _APP_SMTP_SECURE=tls _APP_SMTP_USERNAME=YOUR-SMTP-USERNAME _APP_SMTP_PASSWORD=YOUR-SMTP-PASSWORD _APP_SYSTEM_EMAIL_ADDRESS=YOUR-SENDER-EMAIL

I have double checked the SMTP details from SMTP2GO, they are correct.

username example: noreply@domain.com

How come I get errors?

TL;DR
The user encountered an error while sending an email. They realized they had missed editing some environment variables and made the necessary changes. They then tried to send the email through the dashboard and ran the command "docker-compose up -d." However, they received the error message "Error sending mail: The following From address failed: team@appwrite.io : MAIL FROM command failed". The user confirmed that the SMTP details they entered from SMTP2GO are correct. They are unsure why they are still getting errors. Solution: The user should ensure that all the environment variables are correctly edited, including checking for any missed variables. They should also double-check the
elnur
24 Oct, 2023, 20:15

Also ran docker compose up -d!

elnur
24 Oct, 2023, 20:16
elnur
24 Oct, 2023, 20:26

I reverted the env variables to this blank.

I tried to do it through the dashboard instead:

elnur
24 Oct, 2023, 20:26

However the SDK claims the service isn't available.

elnur
24 Oct, 2023, 20:27

So is the dashboard only for Cloud or does it work on self hosted docker container?

elnur
24 Oct, 2023, 20:27

I just saw I missed one APP variable.

elnur
24 Oct, 2023, 20:28

I'll try editing the .env file again.

elnur
24 Oct, 2023, 20:30

Stupid mistake on my end.

elnur
24 Oct, 2023, 20:32

So to anyone looking at this post.

Make sure to actually change all the env variables.

I missed editing these ones: _APP_SYSTEM_EMAIL_ADDRESS (by default: team@appwrite.io) _APP_SYSTEM_EMAIL_NAME (by default: Appwrite)

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