Missing Attachment data

Sep 20, 2012 at 12:06 PM

I have an application in which i retrives mails in my gmail inbox and reads attachments(only .txt files) file data. It works fine with my gmail but when i try to read attachment in my another account i found data in attachment is missing.
My code is like

 foreach (var attachment in mail.Attachments)
    {
      if (attachment.FileName != null && attachment.FileType == "text/plain")
       {
        byte[] buf = attachment.FileData;
        string attachContent = ASCIIEncoding.ASCII.GetString(buf);
        }
    }
   
   
    waiting for u r valuable reply thanks

Coordinator
Sep 20, 2012 at 9:08 PM

To solve this problem i need some additional information. To make it easy for you, i'll extend the sample application, so you can generate a report file and send it to me.

I'll let you know when the sample app is updated