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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...