Returns content of attachment if ContentType = "text/plain"
Text of attachment if ContentType = "text/plain"
Returns null if IsFileAttachment = false
This sample shows how to use the TextBody property
...
for (int i = 1; i <= objPOP3.TotalMailCount; i++)
{
EmailMessage objEmail = objPOP3.GetMessage(i, false);
if (objEmail.IsAnyAttachments)
{
for(int a = 0; a < objEmail.Attachments.Count; a++)
{
Attachment objFile = (Attachment)objEmail.Attachments[a];
if (!objFile.IsFileAttachment)
{
if (attFile.TextBody != null)
Console.WriteLine("TEXT-BODY: " + attFile.TextBody);
}
}
}
}
...
Attachment Class | ForAspNet.POP3 Namespace