Send email through firebase functions with Node.js using Google's OAuth2, Nodemailer, SMTP & Gmail
Please follow my article on Medium for OAuth2 setup
addMessage("[email protected]")
private fun addMessage(text: String): Task<String> {
val data = hashMapOf(
"text" to text,
"push" to true
)
val functions = FirebaseFunctions.getInstance()
return functions
.getHttpsCallable("sendemail")
.call(data)
.continueWith {
it.result?.data as String
}
}
Please follow official documentation for other platforms