Back

smtp problem

  • 0
  • Self Hosted
  • Messaging
YasharHTML
26 Mar, 2024, 18:02

I have a problem with smtp, i set up as mail.<name>.<tld> Sender email support@<name>.<tld> Username same as sender email Password password Port 587

It says refused to connect and some php things when I try to send the email (can provide images for finding the problem)

TL;DR
Developers having trouble with SMTP configuration for sending emails. Issue seems to be related to the username format or port used. Some are using self-hosted SMTP services and encountering errors like "SMTP connect failed" or "refused to connect." Suggestions include checking the username format (support@*.* or just support) and trying different ports recommended by the provider documentation. Images may be needed for further troubleshooting.
YasharHTML
26 Mar, 2024, 18:04

Failed sending to target <customer email> with error SMTP connect failed.

Evdog
26 Mar, 2024, 18:10

Is there a specific error other than the failure? You can try different ports based on your providers documentation

YasharHTML
26 Mar, 2024, 18:17

It is self hosted smtp (docker mail service)

YasharHTML
26 Mar, 2024, 18:17

I will try other ports

YasharHTML
26 Mar, 2024, 18:20

465 doesn’t work at all

YasharHTML
26 Mar, 2024, 18:20

Only smtp port is 587*

YasharHTML
26 Mar, 2024, 18:20

@Evdog sorry for the @

Heisenberg
26 Mar, 2024, 18:27

Yeah I have the same issue as well, except the smtp config works for sending stuff like team invites but fails for sending messages to users

Heisenberg
26 Mar, 2024, 18:27

Since it works for team invites I don't think its a firewall/port issue, not sure what else it could be tho

YasharHTML
26 Mar, 2024, 18:28

Does username need to be like support@. or support

Heisenberg
26 Mar, 2024, 18:28

I'm not selfhosting smtp, I'm using an external provider

YasharHTML
26 Mar, 2024, 18:28

Oh okay

Heisenberg
26 Mar, 2024, 18:28

so the username is my login credentials to that provider

YasharHTML
26 Mar, 2024, 18:29

Okay

YasharHTML
26 Mar, 2024, 18:29

Does it end with a domain?

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