Free Support Forum - aspose.com

Deleting a message

Hi,

I want to delete a message from the server.

i tried following code

Pop3Client client = new Pop3Client(server,port,username,pass);

client.Connect(true);

client.DeleteMessage(2);//delete Messagege with sequence id 2

client.CommitDeletes(1000);

and I am getting Exception ‘Another operation is pending’

???

Thanks
Jaz

Hello,

I have fixed this bug. Check it out.

Thanks

Hi,

it is working now…

But I am not able to send a mail using SmtpClientBulkSendAgent…:frowning: (it was working before i replaced with the new fix and still working with old dll)…

I am using the following code

smtpClient = new SmtpClient(strSMTPServer);
smtpClient.Port = SMTPPort;
smtpClient.Username = strUsername;
smtpClient.Password = strPassword;
smtpClient.Timeout = ServerTimeout;
smtpClient.SecurityMode = SmtpSslSecurityMode.Explicit;
smtpClient.EnableSsl = true;

bulkAgent = new SmtpClientBulkSendAgent(smtpClient,Concurrent);
bulkAgent.AddMessages(_messageCollection);
bulkAgent.Start();


thanks
Jaz


Hello,

1. Could you please provide me your smtp server for my debuging? My email box is guangzhou##aspose.com (replace the ## to @). I will help to locate this root and fix it ASAP.

2. You can also use Pop3Client.Disconnect() to commit the deletes.

Thanks

Hi,

I hv sent the details to your mail id . Please look on this and give me a reply ASAP

Jaz


hi,

Did you get the mail or i have to resend it???

Hello,

Could you please sent it again? I cannot see any email about that.

Thanks a lot.

Hello,

Could you please check out the attachment, and give it one more try.

Thanks a lot.

Hi iret,

I am still not able to Send using the latest fix(Using bulksend method)

but now I can delete the mail from server using you Aspose.Network dll version 3.8.1.6 after replacing the pop3client.CommitDeletes(1000) with pop3client.Disconnect() … is the bulksending using new fix is working in your testing??

Thanks
Jaz

Yes, It works on my environment.

Anyway, I will do more testing about it to see if anything I can do. I will keep you posted.

Thanks

for me with the old dll(Version 3.8.1.6) both send mail, and Delete From server are possible…

I dont why the new one doesnt works for me . Is there is any chnge in server settings.