outlook cannot receive the selected text in the body of the message, so convert Outlook to a text editor so you can follow 3 steps
1. get the mail total body 2. use the word editor based on the **microsoft.office.Interop.word** dll 3.select the text and to store the any string
the code first adds a dll link
object oItem; Outlook.Application oApp=new Outlook.Application(); Outlook.Explorer oExp=oApp.ActiveExplorer(); Outlook.Selection oSel= oExp.Selection; for (i = 1; i <= oSel.Count; i++) { oItem = oSel[i]; Outlook.MailItem oMail = (Outlook.MailItem)oItem; Outlook.Inspector inspector = oMail.GetInspector;
I think this is a complete help.
source share