Back

Resend SMTP Server not working

  • 0
  • Self Hosted
Korbs
23 Mar, 2025, 06:36

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.
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