How to handle failures while sending mail, for example if i had sent a mail to santhosh@abc.com which is not existing then, the mail format is correct but that email id is not existing then how to handle that situation.
You'll need to write code that periodically checks the mailbox for bounces. Handling those will involve parsing the bounce message to get the address that caused the problem. You can make it easier on yourself by including a unique ID in the subject line that you can easily extract.
Note that while bounces generally happen pretty quickly (in a matter of hours), they can easily take a day or two, and sometimes several weeks.
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
a bit of art, as a gift, that will fit in a stocking