Here’s the code:
poEmail is MailMessage
foreach (Attachment poAttachment in poEmail.Attachments)
{
try
{
string psContent = poAttachment.???
}
catch (Exception exc)
{
Console.WriteLine(exc.Message);
}
}
How to get the text contents of the attachment?