Missing Functions when moving from version 2.9.0 to version 5.7.0

When I compile in version 5.7.0 I'm having problems with the methods in RED below.

Snippet 1:
//Create the SMTP client
using (SmtpClient client = new SmtpClient(connectionInfo.Server, connectionInfo.Port,
connectionInfo.EmailAddress, connectionInfo.EmailPassword))
{
client.AuthenticationMethod = SmtpAuthentication.Login;
if (connectionInfo.RequireSsl)
{
client.SecurityMode = SmtpSslSecurityMode.Explicit;
client.EnableSsl = true;
}


Snippet 2:
using (var client = new ImapClient(connectionInfo.Server, connectionInfo.Port,
connectionInfo.EmailAddress, connectionInfo.EmailPassword))
{
if (connectionInfo.RequireSsl)
{
client.SecurityOptions = Aspose.Email.Imap.SecurityOptions.SSLExplicit, ;
client.EnableSsl = true;
}

try
{
client.Connect();
client.Login();

// Call the func, passing in an open client
action(client);
}

Snippet 3:
client.ExpungeMessages();


What do I do to fix these?

Hi James,


Thank you for contacting Aspose support team.

Here a sample project is attached which contains the code according to the new version. You may please give it a try and let us know the feedback.

ExpungeMessages function is no more required and is deprecated.