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.
Summary
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
Jan 22, 2024, 21:51
👀 Usually there's some minor mistake in your SMTP config, but not big enough to trigger an error 😆
If you could, redact sensitive information and show us your SMTP config, we can better help you debug here.
rovolt.
Rank 2: Process
Jan 22, 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
Jan 22, 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
Jan 22, 2024, 22:00
And are you trying to trigger these emails form the console or an SDK?