Closed thevinitgupta closed 1 year ago
@devarshishimpi , should we place mail functionality to a separate file(helper.js) to avoid code duplication ? If yes, should this task be covered in this issue or by creating a separate issue?
@devarshishimpi , should we place mail functionality to a separate file(helper.js) to avoid code duplication ? If yes, should this task be covered in this issue or by creating a separate issue?
I think the same file works
Alright then! Everything else is looks good for me .
Describe your changes
Added a middleware to send email to send email to admin in case of
500 server error
Screenshots - If Any (Optional)
Issue ticket number and link - If Any
215
Checklist before requesting a review
[x] I have performed a self-review of my code.
[x] Followed the repository's Contributing Guidelines.
[x] I ran the app and tested it locally to verify that it works as expected.
[x] I have starred the repository.
Additional Information (Optional)
The following details for the
![error js-2023-02-21-13-02-34](https://user-images.githubusercontent.com/65801700/220279221-a1645164-6a79-4435-8cf2-80ed17ff2616.png)
nodemailer
configuration needs to be updated with admin details :