Throwing error if there are no unseen mails, and by that my app is crashing,how to fix or handle that error,pls let me know
I am also facing the same problem how to solve it ???
Hello Arbaz,
You can use try/catch or .catch to handle errors. See the attached some code snippets that can help you handle errors.
thank you sir how we will fetch the attachments from the email sir can you share this to me plz?????
You can get the attachment from the "parsed" object.
example is:
const {from, subject, textAsHtml, text, attachments} = parsed;
Check the mailparser documentation for more information
thank you so much sir
You are welcome sir
Hey Surya, I saw your email and I believed my recommended solution works
i need the solution too for this sir
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Throwing error if there are no unseen mails, and by that my app is crashing,how to fix or handle that error,pls let me know
I am also facing the same problem how to solve it ???
Hello Arbaz,
You can use try/catch or .catch to handle errors. See the attached some code snippets that can help you handle errors.
thank you sir how we will fetch the attachments from the email sir can you share this to me plz?????
You can get the attachment from the "parsed" object.
example is:
Check the mailparser documentation for more information
thank you so much sir
You are welcome sir
Hey Surya, I saw your email and I believed my recommended solution works
i need the solution too for this sir