When entering SMTP information on my self-hosted instance, I get an error that it's not able to connect to the SMTP server.
Docker also shows this in the logs:
TypeScript
appwrite | [Error] Timestamp: 2025-03-23T06:34:24+00:00
appwrite | [Error] Method: PATCH
appwrite | [Error] URL: /v1/projects/:projectId/smtp
appwrite | [Error] Type: Appwrite\Extend\Exception
appwrite | [Error] Message: Could not connect to SMTP server: SMTP Error: Could not connect to SMTP host. Failed to connect to server
appwrite | [Error] File: /usr/src/code/app/controllers/api/projects.php
appwrite | [Error] Line: 1794
appwrite | Failed to initialize logging provider: Unable to parse DSN: scheme is required
I use Resend as my SMTP provider and would like to use it. I usually use the port 587, yes I tried 22 and 465 as well.
TL;DR
The developer is experiencing issues connecting to the SMTP server while configuring it on a self-hosted instance. The error message suggests a connection problem with the SMTP server. They specified using Resend as their SMTP provider and attempted different ports (587, 22, 465) without success. The error log from Docker indicates a failed connection to the SMTP host. The issue may lie in the SMTP configuration settings or server-side settings. Double-check the SMTP configuration details and ensure they are correct.Recommended threads
- Getting error when trying to add domain ...
we use self hosted appwrite on my company and every single time ever I tried to add a domain it shows this error on the top rigth: "Cannot read properties of un...
- Using OTP Email to verify user for passw...
Has anyone ever implemented this? If you did what was your aproach? Did you write an appwrite function?
- Transaction and Session
I've been debugging for hours a problem that now I think it's because It's not allowed: In my project a user log in using the `node-appwrite` SDK (SSR) I store...