Skip to content

Send email through firebase functions with Node.js using Google's OAuth2, Nodemailer, SMTP & Gmail

License

Notifications You must be signed in to change notification settings

akshaybhange/Firebase-Functions-sendMail-Google-OAuth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Functions Send Email using Google OAuth2

Send email through firebase functions with Node.js using Google's OAuth2, Nodemailer, SMTP & Gmail

Instructions to Setup OAuth2

Please follow my article on Medium for OAuth2 setup

Calling function from Android APP

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
            }
    }

For other platfroms and more details

Please follow official documentation for other platforms

About

Send email through firebase functions with Node.js using Google's OAuth2, Nodemailer, SMTP & Gmail

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published