
I've setup the .env and the project SMTP (why are they separate? Shouldn't each project in theory have its own SMTP settings so it gets sent through there? What does the .env one do now?) but I cannot get any mail to actually send when I invite people. Additionally, the "Resend Invite" button is still broken, it should in theory (or expected) just resend invite to the organization member, but it p much always says AppwriteException they already have one pending, which is IMO the point of the button but I digress, I can't seem to get SMTP to work. On my other server, I was using Gmail's SMTP servers, and it didn't work either.

The .env one is the Appwrite one and a fallback for projects. In the project, you can configure project specific settings.
Check the docker logs for the appwrite-worker-mails container

Gotcha, any reason why that error pops up then?

The error, more specifically, is when you try to set custom SMTP settings in a project and it says SMTP must be enabled! something like that so you have to fill out the .env file

The exception on resend is probably a bug

Gotcha, I'm pretty good with PHP, I can put in a pull request?

Yes, you should fill out the .env file. Then, you can override per project

So what do you normally recommend for the base settings? The actual domain itself that Appwrite is on probably?

Ya. It's used for the appwrite platform itself. Like password recovery for your console account, inviting a user to your org, etc

Someone has already asked to work on https://github.com/appwrite/appwrite/issues/6251

Gotcha, thank you, I'll check logs rn

Yeah it says Could Not Authenticate but it's the exact same credentials as on the server

Sendmail I believe, we verified credentials last time we were on call yesterday

So it's an error when configuring the project smtp or the .env file?

.env file

Actually I don't see anyone who asked to work on this ...do you want to work on it?

This is the same with resending programmatically, I would expect?
Recommended threads
- Cannot connect to SMTP in AppWrite - set...
This used to work and then at some point it stopped. One thing that happened in that time was moving my application to Vercel. I have read on another thread t...
- [Self Hosted]
fresh instance of Appwrite - cant deploy function from local to instance ✗ Error • func2 (68134cd9002358f96e4a) • Invalid `specification` p...
- Login/Logout Issue and Page Display Desp...
Subject: Login/Logout Issue and Page Display Despite System Downtime at app.animtube.xyz Hello Appwrite Support Team, After the domain change I made recently (...
