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?