error report service

Hi Guys,

Need your help, I need a create service which gets the key fields from the error mails and send report of all the failures capuring key fields like ( po# or invoice#) and time when error occured ( which is present in error mail) to a user’s email in a excel format.

I get the error mails for service to mymail id , which i store in my pst.

My doubt is how can we map the error mail content present in the email to the service, can we map it simply like mapping a flat file mapping( object >>> xml node >>> xml node to string )