event manager... I want to initiate a function where an admin has the privilege to delete an event created by a user allocated to a venue. So when this event has been deleted by the admin I want a mail to be send to the user that created the event that your event has been cancelled using nodemailer. Now I have already written the function giving the admin the privilege to cancel any event. My problem now is initiating the email notification to notify the user that created that event that he or her event has been deleted. I am using nodemailer. My idea was to write the nodemailer function within the delete event function so that as soon as the admin deletes the event the nodemailer codes runs. Any better ideas guys?
Where do you see the problem? You already divide business logic from the implementation Details. So i see no problem with that
I'm still learning node n Js so my idea can be very amateur
Do you have a rest api?
Why doesn't your original idea work?
Обсуждают сегодня