Thursday, 5 April 2018

Nodemailer

When using an array of emails in the "to" field, what/how exactly is the module sending email to these addresses? Is it through a loop?Currently, our developer responsible for this feature used a loop. First, he queried all the email addresses from the database, stored it in an array, and then loop through the array, and used the .newPostNotification function to send email. I suspect doing it this way may stress the server if there are 100+ emails?

Submitted April 05, 2018 at 11:18AM by eggtart_prince

No comments:

Post a Comment