Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

October 25, 2005

Plain-Text / HTML Alternative Bodies

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.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.