Jun 5, 2012 at 4:15 AM
Edited Jun 5, 2012 at 4:48 AM
IsAttachment is returning false inspite of having attachments in the mail.
MailMessage.GetAttachedContents has 2 arguments: Contents and Predicate. What do I pass in them?
HigLabo.Net.Pop3.Pop3Client cl = new HigLabo.Net.Pop3.Pop3Client();
if (cl.Authenticate() == true)
MailMessage mg = null;
Int32 mailCount = Convert.ToInt32(cl.GetTotalMessageCount());
for (int i = 1; i < mailCount + 1; i++)
mg = cl.GetMessage(i);
List<MailContent> lstAttachment = mg.GetAttachedContents( ??? , ???);
MailMessage.Contents is returning Count = 2 irrespective of whether mail has attachment or not. How do I check through it whether mail has an attachment or not?