Hi All,
I am fetching the body of a mail.I need all the unread mails that are with the subject Invoice Details
item.Subject.Contains(“Invoice Details”) OR item.Subject.Contains(“Fw: Invoice Details”) so I have done this now I am using regex to get plain text of the html body of the mail System.Text.RegularExpressions.Regex.Replace(item.Headers(“HTMLBody”),“(<.?>)|({.})|(.[})–{;]\s?\r\n)|(\r?\n@.)|(.*[}{;]$)”,String.Empty).Trim
so if I have the body as 19345,123123,454543 I am splitting the string Split(mail_body.ToString,“,”)(0).ToString.Trim
I want to extract these all and then save it in an excel.Now I can only store one of the values into a variable.Please can someone advice how can I do that.
Thanks in advance.
Rishi Mukherjee