Monitor for bounce message when using MailMessage() API
Trying to monitor bounced messages that have been initiated by the system through Mail API.
There is a requirement to send emails using Mail API so attachments can be sent automatically.
This is sent by CPM triggered by a business rule at a particular time.
The code I'm using is working fine, as I'm able to create a new mail, attach the right attachment and send to the primary contact.
I have also created a dummy "Auto Response" in the message thread to mimic as it was sent through the system.
The issue that I'm having is that - we have some contacts that do not contain proper email addresses and will be either be hard bounced or soft bounced back to OSVC. We have a requirement to ensure all bounced messages are monitored and flag it up if a bounce did occur on the Service Request.