Back

How to trigger mail sending

  • 0
  • Self Hosted
  • Flutter
  • Accounts
rovolt.
22 Jan, 2024, 21:47

Hello, I'm building an app in Flutter using Appwrite as the backend (selfhosted). I set up SMTP which works when I request a new password for my Appwrite dashboard user. But I'm unable to trigger any other mail like verification after registration. There are also neither errors nor logs related to this.

TL;DR
The developer is unable to trigger any email notifications, such as verification after registration, using SMTP in their app built with Flutter and Appwrite as the backend. They have already successfully used SMTP for password reset emails. The developer has shared their SMTP configuration and asked for help in debugging. One response suggests checking for any minor mistakes in the SMTP config and provides a link for further exploration. The solution is not explicitly stated in the thread.
VincentGe
22 Jan, 2024, 21:51

πŸ‘€ Usually there's some minor mistake in your SMTP config, but not big enough to trigger an error πŸ˜†

https://dev.to/gewenyu99/exploring-teams-and-smtp-with-appwrite-8fn

VincentGe
22 Jan, 2024, 21:51

See if this helps

VincentGe
22 Jan, 2024, 21:52

If you could, redact sensitive information and show us your SMTP config, we can better help you debug here.

rovolt.
22 Jan, 2024, 21:58

Hi πŸ™‚ My config looks like this: _APP_SYSTEM_EMAIL_NAME=Appwrite Staging _APP_SYSTEM_EMAIL_ADDRESS=the-accounts-mail-adress _APP_SMTP_HOST=mysmtphost _APP_SMTP_PORT=587 _APP_SMTP_SECURE= _APP_SMTP_USERNAME=myuser _APP_SMTP_PASSWORD=mypassword All real values are valid and work like I said when I request passwort forgot for the dashboard user. Also the exact same settings work in a mail client.

VincentGe
22 Jan, 2024, 21:59

Few things: is the _APP_SYSTEM_EMAIL_ADDRESS configured on your SMTP server?

What is the _APP_SMTP_SECURE policy you're using? should be tls if you're using port 587.

VincentGe
22 Jan, 2024, 22:00

And are you trying to trigger these emails form the console or an SDK?

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