Free Support Forum - aspose.com

Enum is missing

i am using following code


Aspose.Email.Imap.ImapClient client = new ImapClient();
client.SecurityMode = ImapSslSecurityMode.Implicit;

But SecutiryMode property is missing

And ImapSslSecurityMode enum is missing

So what dll we shouldl use for this?

Hi,


Thank you for contacting Aspose support team.

ImapClient.SecurityMode is obsolete and no more available now. You may please use SecurityOptions and shown in following sample code:

ImapClient imap = new ImapClient(imap.gmail.com, 143, “user”, “pwd”);<o:p></o:p>

imap.SecurityOptions = SecurityOptions.SSLImplicit;