ImapClient.AppendMessage Fails

Hi,

I am using the latest (3.6) version of the Network Library and the ImapClient.AppendMessage() fails (null pointer). I have tried with 2 different IMAP servers and multiple messages - Please take a look and let me know if it is something I am doing wrong or a problem with the library.

Thanks for the help!
-Ed

here is some sample code that fails:

Aspose.Network.Imap.ImapClient AsposeClient = new Aspose.Network.Imap.ImapClient();

AsposeClient.Username = “user”;
AsposeClient.Password = “pass”;
AsposeClient.Host = “mail.mail.com”;
AsposeClient.AuthenticationMethod = Aspose.Network.Imap.ImapAuthentication.CramMD5;
AsposeClient.Connect();
AsposeClient.Login();

Aspose.Network.Mail.MailMessage mm = new Aspose.Network.Mail.MailMessage();
mm.TextBody = “None”;
mm.HtmlBody = “None”;
mm.From = “aa@bb.com”;
mm.To = “bb@aa.com”;
mm.Subject = “A Subject”;

AsposeClient.AppendMessage(“Inbox”, mm);

The error is:

System.NullReferenceException was unhandled
Message=“Object reference not set to an instance of an object.”
Source=“Aspose.Network”
StackTrace:
at Aspose.Network.Imap.ImapClient.x84cb5117a00a8c09(String xfd6dd6e53b1a26d5, x0d5228de32e4575d xe464d907306ccb86, Boolean x291fabf8727e1df6)
at Aspose.Network.Imap.ImapClient.x84cb5117a00a8c09(String xfd6dd6e53b1a26d5, x0d5228de32e4575d xe464d907306ccb86)
at Aspose.Network.Imap.ImapClient.x68c3ef881eff3713(String xfd6dd6e53b1a26d5, Object[] x874e1670b98e53ec)
at Aspose.Network.Imap.ImapClient.x18dfca7c5fd2402f(String xfd6dd6e53b1a26d5, Object[] x874e1670b98e53ec)
at Aspose.Network.Imap.ImapClient.x1909144cad306b34(String x8b5b49efcd08ae0a, x24321eeaf184a530 x1f25abf5fb75e795, MessageFlags xebf45bdcaa1fd1e1)
at Aspose.Network.Imap.ImapClient.AppendMessage(String folderName, MailMessage message, MessageFlags flags)
at Aspose.Network.Imap.ImapClient.AppendMessage(String folderName, MailMessage message)

Hello, Ed,

We are working on this issue. I will get back to you soon.

Do you think we can use your imap server for the bug repro?

Thanks,

Thanks, please keep me posted.

You should be able to repro with any IMAP server (I’ve tried several, and it fails on all), but if you need an account, email me directly and I’ll see what I can do.

Thanks!
-Ed

Hi,

Any updates on this issue?

Thanks,
-Ed

Hello,

We are still working on this issue. I will get back to you in a few days.

Thanks

Hello,

We have fixed this bug. Here is the hotfix, please check it out:

https://downloads.aspose.com/email/net

Thanks,