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
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case