This project is read-only.

Message BODY always returns NULL. Why?


I cannot retrieve Body of any messages:
using (var imap = new AE.Net.Mail.ImapClient("-", "-", "-", AE.Net.Mail.AuthMethods.Login, 993, true))
                    for (int i = 0; i < messageCount; i++)
                        MailMessage msg = imap.GetMessage(i, false, false); // returns headers only NEVER returns BODY!
            string subject = msg.Subject; // works fine.
            string content = msg.Body; // returns NULL!!!
                        Console.WriteLine(msg.AlternateViews[0].Body); // returns NULL.

The above code should work fine. However, Body always returns NULL. At any given time of the day, there is always atleast 30 new emails in my inbox. I can successfully get all HEADERS but I can never get any BODY of emails. Why does Body always return NULL?


jstedfast wrote Jul 23, 2014 at 11:55 AM

I would recommend using my MailKit library instead since it does not have this problem.

It's also quite a bit faster.

Hope that helps.