Back

SMTP connect() failed on Appwrite Messaging

  • 0
  • Self Hosted
  • Messaging
BasdP
12 Mar, 2024, 10:35

Hi,

I've upgraded to Appwrite 1.5.2, and want to try out Appwrite Messaging with my SMTP server. I've tried Gmail SMTP relay and Mailersend.com, but both give me SMTP connect() failed. Which is kinda weird, because if I use the same credentials in the project settings in the SMTP tab, Appwrite sends out confirmation and sign-up emails just fine.

How can I debug this?

Kind regards,

Bas

TL;DR
Developers experiencing SMTP connection failures while using Appwrite Messaging with Gmail SMTP relay and Mailersend. SMTP settings are correct in environment variables and Project settings but still encountering the error. Requesting help with debugging. Solution: Verify that the SMTP server information is correctly set up in the server .env file and not just in Project settings.
ideclon
12 Mar, 2024, 10:36

Is SMTP set up in the server .env, or just in the Project settings?

BasdP
12 Mar, 2024, 10:38

in three locations, the environment variables (which work, Appwrite is sending out emails to admins), the project SMTP tab (which works, Appwrite is sending out emails to site user signups and such), and in Appwrite Messaging, which doesn't work with the error SMTP connect() failed. All settings are the same server, same credentials and same TLS settings. I've tried both Gmail and Mailersend, all works except Appwrite Messaging.

Steven
12 Mar, 2024, 10:59

Any chance you can test without tls?

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