Back

Unable to send mail

  • 0
  • Self Hosted
Govind
25 Jan, 2024, 08:13

unable to send mails. even smtp is correctly configured

TypeScript
govind@e2e-106-149:~/appwrite$ docker compose logs -f appwrite-worker-mails
appwrite-worker-mails  | [Worker] Worker 0 is ready!
appwrite-worker-mails  | Worker mails  started
appwrite-worker-mails  | [Job] Received Job (65b217a8d5b5d4.10007191).
appwrite-worker-mails  | [Job] (65b217a8d5b5d4.10007191) failed to run.
appwrite-worker-mails  | [Job] (65b217a8d5b5d4.10007191) Error sending mail: SMTP Error: The following recipients failed: certs@appwrite.io: <team@appwrite.io>: Sender address rejected: not owned by user something@codemantalks.com
appwrite-worker-mails  |
appwrite-worker-mails  | [Error] Type: Exception
appwrite-worker-mails  | [Error] Message: Error sending mail: SMTP Error: The following recipients failed: certs@appwrite.io: <team@appwrite.io>: Sender address rejected: not owned by user something@codemantalks.com
appwrite-worker-mails  |
appwrite-worker-mails  | [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Mails.php
appwrite-worker-mails  | [Error] Line: 96
appwrite-worker-mails  | [Job] Received Job (65b217ba961533.91260033).
appwrite-worker-mails  | [Job] (65b217ba961533.91260033) failed to run.
appwrite-worker-mails  | [Job] (65b217ba961533.91260033) Error sending mail: SMTP Error: The following recipients failed: amoldeshmukh683@gmail.com: <team@appwrite.io>: Sender address rejected: not owned by user something@codemantalks.com
appwrite-worker-mails  |
appwrite-worker-mails  | [Error] Type: Exception
appwrite-worker-mails  | [Error] Message: Error sending mail: SMTP Error: The following recipients failed: amoldeshmukh683@gmail.com: <team@appwrite.io>: Sender address rejected: not owned by user something@codemantalks.com
appwrite-worker-mails  |
appwrite-worker-mails  | [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Mails.php
appwrite-worker-mails  | [Error] Line: 96
TL;DR
The developer is unable to send emails through their SMTP provider. They have verified that the SMTP is correctly configured, but the emails are still not sending. The error message suggests that the sender address is rejected because it is not owned by the user. The developer should change the system email environment variable to the correct address (`something@codemantalks.com`). The issue is not with Appwrite, but rather with the SMTP provider.
Drake
25 Jan, 2024, 08:34

Appwrite is working fine. This is a problem with your SMTP provider

Drake
25 Jan, 2024, 08:38

You might want to change your system email environment variable. It might still be set to &#x74;&#101;&#97;&#x6d;&#64;&#97;&#x70;&#112;&#x77;&#114;&#105;&#x74;&#101;&#46;&#105;&#111;

Govind
25 Jan, 2024, 08:38

Noo it's same email address

Drake
25 Jan, 2024, 08:39

Verify the environment variable using docker compose exec appwrite vars

Govind
25 Jan, 2024, 08:51
Govind
25 Jan, 2024, 08:51

everything seems correct right ?

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