Back

SMTP

  • 0
  • Self Hosted
  • Web
Camo
18 Feb, 2024, 08:35

After adding smtp credentials to the appwrite console project, and they are accepted(green mark). Then in client doing appwrite.account.createMagicURLSession(testuser, testemail) returns exception SMTP disabled?

TL;DR
Developers need to set the global ENV `_APP_SMTP_HOST` variable for local project SMTP to work. Use an empty string to disable mail sending. Make sure to add SMTP credentials in the Appwrite console project. If you're getting an exception about SMTP being disabled, check that the SMTP credentials are accepted in the console.
Camo
18 Feb, 2024, 08:39

I guess with out setting the global ENV _APP_SMTP_HOST, the local project smtp wont work. ENV _APP_SMTP_HOST variable, the local project smtp wont work. Use an empty string to disable all mail sending from the server. The default value for this variable is an empty string.

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