Thursday 25 June 2020

Can anyone share what your email queuing system looks like? Examples online directly use nodemailer, yet to find one using a queue

User signs up/forgets password etc you need to send an emailAfter spending almost a day googling and going through examples, most of them directly use the nodemailer to sendEmailIf I am not mistaken, arent you supposed to queue emails so that your server doesnt get clogged?I havent been able to find even a single decent example of how to queue emails?I found this package called bull but what does the workflow look like?Add only addresses to this queue?Add addresses + subject + text of the email to queueAdd link to a SES template?How is this queue object passed to the route? globally? as an argument to a functionCan someone kindly share some idea of how the design pattern would be for this problemIs this testable by Jest?

Submitted June 26, 2020 at 06:48AM by amazeguy

No comments:

Post a Comment