
Run this inside your appwrite folder: docker compose exec appwrite vars
Are the variables that you set in .env there?

yes

no isn't

Cool. Then let's try to restart Appwrite to apply those. Let's run:
docker compose down
then
docker compose up -d

i try now

now it's working but the email isn't send

- _APP_SMTP_HOST=smtp.sendgrid.net
- _APP_SMTP_PORT=587
- _APP_SMTP_SECURE=tls
- _APP_SMTP_USERNAME=apikey
- _APP_SMTP_PASSWORD=SG...

Amazing! This could be Sendgrid related. You can check logs here: docker compose logs appwrite-worker-mails
. Any errors there? If not, you can check Sendgrid to see if they dismissed email for some reason

yes

503

appwrite-worker-mails | ,503,SMTP server error: MAIL FROM command failed Detail: Only one sender per message, please appwrite-worker-mails | SMTP code: 503 in /usr/src/code/app/workers/mails.php:68 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/src/Appwrite/Resque/Worker.php(122): MailsV1->run() appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform() appwrite-worker-mails | #2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform() appwrite-worker-mails | #3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job)) appwrite-worker-mails | #4 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #5 {main}

I think we only use one sender 馃 What is your value in .env
聽for _APP_SYSTEM_EMAIL_NAME
and _APP_SYSTEM_EMAIL_ADDRESS
?

need to be same with sendGrid sender?

I would think, yeah. If not, it could cause some spam folder issues

i try now

- _APP_SYSTEM_EMAIL_NAME=gmail.com
- _APP_SYSTEM_EMAIL_ADDRESS=some@gmail.com

like this?

I don't think Sendgrid allows gmail sender. Do they? I think you will need to configure a domain, or use email address hosted by Sendgrid

Regarding name, that should be sender name. Like "Matej Baco" or "My App Noreply". maybe the dot is causing some trouble

it's working

Eyyy 馃帀

thx a lot <:appwritefire:823999000330895380>

Always happy to help! <:appwritepeepo:951504790398074950>

Have a nice day馃檶

[SOLVED] I try to run simple function
Recommended threads
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: 鈥淚n the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
