TypeScript
suspend fun sendPasswordRecoveryEmail(userEmail: String,context: Context) {
val account = Account(client)
try {
account.createRecovery(
email = userEmail,
url = "https://Showgo.in/reset-password"
)
withContext(Dispatchers.Main) {
Toast.makeText(
context,
"Reset email sent successfully!",
Toast.LENGTH_LONG
).show()
}
} catch (e: AppwriteException) {
withContext(Dispatchers.Main) {
Log.e("AppwriteRepository", "Error sending reset email: ${e.message}")
Toast.makeText(
context,
"Failed to send reset email: ${e.message}",
Toast.LENGTH_LONG
).show()
}
}
}
TL;DR
Developers are not receiving emails from a custom SMTP server setup in their app. Disabling the custom SMTP results in instant email reception. A code snippet for sending verification emails is provided for review.i am sending the verification mail through this code, though i am sure it has no error, but just in case...
when i am disabling the Custom SMTP the mails are received instantly
but with custom SMTP, nopee..
Recommended threads
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...