Skip to content

🔥 Firebase Cloud Function for mailing to a contact.

Notifications You must be signed in to change notification settings

arpank10/NodeJs-nodemailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeMailer sample

This project demonstrates the usage of Nodemailer in Node.js to send email to a contact.

It uses Firebase Cloud Functions which allows us to respond to events without setting up a server.

Requirements

Install firebase-tools using the following command:

npm install -g firebase-tools

Follow the steps here for getting started with firebase functions. Select Javascript as the language.

After that, install nodemailer:

npm install nodemailer

Build

Run the following command to set up the email and password from which you want to send the mail:

firebase functions:config:set gmail.email="[email protected]" gmail.password="password"

Deploy your functions with the following command, it may take some time:

firebase deploy --only functions

About

🔥 Firebase Cloud Function for mailing to a contact.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published