Is it possible to capture the failure mail. I have created a application for sending mail, i have a log file to store the sent mails. If the sent mail is failure, i just want to find out the failure mail and update the log file.
Is it possible! Is there any way to match the sent mail and the failure mail
Please help me and guide me.
If you mean by failure, a bounced email, you can add an email address to ‘return-path’ header. If the email is bounced it will be returned to the the email address specified in the return-path. You can then set up a service to analyze these emails.