Hello, i am trying to make email automation in nodejs by using nodemailer and nodecron. However, even though i am able to send emails successfully and can make nodecron work in a sense of sending emails at a certain date, i am unable to make the emails sent automatically. An example i want is that once i input an email submission to be sent, the receiver should receive the email on that date and the code would not run continuously until that date arrives. Right now if i want to send an email tomorrow, my code would keep running until tomorrow comes then execute. Thus, i would not be able to send another submission as i am unable to start a new function until the code executes. Is there a way to fix this?
Submitted September 07, 2020 at 12:22PM by RedditBzCode
No comments:
Post a Comment