forum

home / developersection / forums / identify filename of email attachment

Identify filename of Email Attachment

Anonymous User 2608 18-Dec-2013

How do I get filename of the email attachment. I am using ActiveUp.Net.Mail.

Mailbox inbox = imap.SelectMailbox("inbox");
int[] ids = inbox.Search("ALL");
ArrayList mailContainer = new ArrayList();
for (int x = 0; x < ids.Length; x++ )
{
   mailContainer.Add(inbox.Fetch.MessageObject(ids[x]));
}
foreach (Message msg in mailContainer)
{
    if (msg.Attachments.Count > 0)
    {
        msg.Attachments.StoreToFolder(@path);
    }
}

I was thinking of saving the attachment and then read the attachment...Is there a way I would directly read the attachment without saving if it in .xls format?


c# c# 
Updated on 18-Dec-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By