Sign In  Sign Up Live-Chat

Deleting a message

Last post 05-23-2008, 4:47 AM by jazeelkm. 10 replies.
Sort Posts: Previous Next
  •  05-15-2008, 5:04 AM 127183

    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
     
  •  05-15-2008, 10:44 AM 127248 in reply to 127183

    Re: Deleting a message

    Attachment: Present (inaccessible)

    Hello,

    I have fixed this bug. Check it out.

    Thanks


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  05-16-2008, 5:01 AM 127412 in reply to 127248

    Re: Deleting a message

    Hi,

    it is working now...

    But I am not able to send a mail using SmtpClientBulkSendAgent..:( (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


     
  •  05-16-2008, 10:41 AM 127461 in reply to 127412

    Re: Deleting a message

    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


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  05-20-2008, 12:22 AM 127781 in reply to 127461

    Re: Deleting a message

    Hi,

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

    Jaz


     
  •  05-21-2008, 3:16 AM 127988 in reply to 127781

    Re: Deleting a message

    hi,

    Did you get the mail or i have to resend it????
     
  •  05-21-2008, 6:28 AM 128014 in reply to 127988

    Re: Deleting a message

    Hello,

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

    Thanks a lot.

     


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  05-21-2008, 11:58 AM 128088 in reply to 127183

    Re: Deleting a message

    Attachment: Present (inaccessible)

    Hello,

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

    Thanks a lot.


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  05-23-2008, 2:05 AM 128368 in reply to 128088

    Re: Deleting a message

    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
     
  •  05-23-2008, 2:24 AM 128372 in reply to 128368

    Re: Deleting a message

    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


    Team Lead
    Aspose Guangzhou Team
    About Us

    Contact Us
     
  •  05-23-2008, 4:47 AM 128402 in reply to 128372

    Re: Deleting a message

    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.
     
View as RSS news feed in XML