Hello, I am supposed to extract designation of mail sender from an email chain.
My Approach:
- get outlook mail message → item.body and item.from.address.ToString
- In loop, read item.body → find "From: " and remove all the lines till it finds next empty line. Why? So that all the unnecessary email addresses can be removed and only email addresses in the signatures will be available and we can read line above those email addresses
Where am I stuck?
In step 2! How to delete expected lines and read one line above the email address available in signature.
Note: this task would be performed under controlled environment in which everybody needs to have their e-mail signatures in a specific format like below:
greeting,
Name
designation
email id
department
desk
Please suggest me…