Skip to content

Code to send email asynchronously using Node.js. This utilizes parallel processing to send emails and not wait for callbacks.

Notifications You must be signed in to change notification settings

nanduri1998/async-mail-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async Node.js Email Send

Send email asynchronously using Node.js

Create a .env file

Define the following code:

NODE_ENV=development
email="YOUR_EMAIL"
password="YOUR_PASSWORD"
api="YOUR_API_LINK"
from="YOUR_FROM_EMAIL/NAME"
subject="EMAIL_SUBJECT"

Note: This is only for GMAIL. HTML/Text must be edited in code

Note: API must return array as shown below

Execute

Run the following command with list of emails send as an array from the API Link defined in the .env file. npm start

Limits

Depends on the server capability. Can be used on Heroku.

About

Code to send email asynchronously using Node.js. This utilizes parallel processing to send emails and not wait for callbacks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published