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
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.
- Weird Table Causes Console to break
I dont even know how this even happened looks like the $createdAt and , $id got switched? <@831428608895615056>
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...