Question:
When we are trying get mail body text using "GetPlainTextBody" Method it doen’t return any value. Please help us how to we get plain text body message in irrespective Mail Format (i.e Html,rich text, plain text, etc..)?
Answer:
The Email.GetPlainTextBody returns the plain-text alternative body if present. If an email is HTML-only (i.e. only contains an HTML body but no plain-text alternative) then GetPlainTextBody will return the empty string. The Body property will always return a body, whichever one is present. If both plain-text and HTML alternative bodies are present, the Body property returns the HTML alternative.