Skip to content
Back

[SOLVED] Appwrite not sending Emails

  • 0
  • Resolved
  • 3
  • Self Hosted
GamingForLiveYT
1 Jan, 2026, 18:21

I’m running a self-hosted Appwrite instance (v1.8.1) and I can’t get invite emails to send when using the team invite flow described in the docs: https://appwrite.io/docs/products/auth/team-invites

My mail server is Mailcow (v2025-12a).

Sending emails manually works fine: if I create and send messages via an Appwrite Function using the Messaging service, the emails are delivered without any issues. However, anything Appwrite is supposed to send on its own (like user/team invite emails) never gets sent.

SMTP is configured and enabled in Appwrite and uses the same credentials as the working Messaging setup.

When Appwrite should send an invite email:

nothing shows up in the Appwrite Docker logs (except a warning about no SMS provider)

nothing shows up in the Mailcow logs either

When emails are sent via the Messaging service, I do see them in the Mailcow logs.

So it looks like Appwrite never even tries to send invite emails, even though SMTP itself is working.

TL;DR
Appwrite was not sending emails. User checked SMTP settings, updated container after changing environment variables, but still faced issues. After further troubleshooting, it was discovered that SMTP credentials were incorrect. The user tried inviting a team member using a messaging provider's feature which worked, signaling a credential match. However, the issue persisted when sending invitations through the SDK. After more testing, it was found that running the function to send invitations broke the process. The user raised a Github issue for further assistance, ultimately resolving the problem. The user also inquired about getting password reset links without separate SMTP provider credentials and shared concerns about email functionalities in Appwrite's
1 Jan, 2026, 20:12

Have you correctly configured the SMTP settings in your environment variables? If you've only configured a custom SMTP server within your project, it will only work within that project.

1 Jan, 2026, 20:13

I have set the details in .env but im not shure if docker parses it coorectly due to special characters should i use "password" or 'password' in the env? i honestly dont remember πŸ˜†

1 Jan, 2026, 20:15

They are no different in this situation.

1
1 Jan, 2026, 20:15

then ill add "" just to make shure its propperly parsed as i ve got @ * and ! in the password

1 Jan, 2026, 20:16

yes

1 Jan, 2026, 20:17

I'll briefly explain the difference between double quotes and single quotes: double quotes support escape characters, while single quotes are literal and do not support them.

1 Jan, 2026, 20:18

good to know thanks for the insight

1 Jan, 2026, 20:18

you can check logs if it not work

docker compose logs -f appwrite-worker-mails

1 Jan, 2026, 20:19

*if it not work

1 Jan, 2026, 20:19

ive already been in the logs no errors there (besides again from the sms provider being not configured) but i didnt recive an email

1 Jan, 2026, 20:21

If you are using a self-hosted SMTP service provider, you may need to check your spam folder.

I don't think it will be very useful, but I'll mention it anyway.

1 Jan, 2026, 20:22

πŸ˜† sorry but ive done that ive also been in the logs where i can see what service connected to the smtp server to send mails and ive looked throught the anti spams history

1 Jan, 2026, 20:25

triggering the user invite using the server sdk shouldnt break it right? cause rgnw the invitation is being handeld in a function

1 Jan, 2026, 20:26

Did you update the container after changing the environment variables?

1 Jan, 2026, 20:26

nope let me do that real quick πŸ˜†

1 Jan, 2026, 20:28

Were the invitation emails sent through other methods successful? This includes inviting others to the organization via the control panel and inviting others through the client application.

1 Jan, 2026, 20:28

Oh

1 Jan, 2026, 20:29

nope didnt change anything unfortunately

1 Jan, 2026, 20:30

I thought the email you sent to invite others wasn't working within the organization, but it was actually for inviting people to the project.πŸ˜…

1 Jan, 2026, 20:31

ahhh no the invite just to the project will get manual notifactions due to me first having to look at the users notification prefences that ive included

1 Jan, 2026, 20:34

Okay, I have no idea why this is happening. I initially thought it was a configuration issue. I sincerely apologize that I haven't been able to resolve it.

1 Jan, 2026, 20:35

oh dont worry about it ive been banging my head against that issue for like a week by now πŸ˜†

1 Jan, 2026, 20:35

the only reason that its annoying me is that my workarround didnt work as it always failed to fetch the secret for the user invite

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