Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Pop3Client problem when connecting

Last post 11-17-2010, 5:08 AM by janstolk. 3 replies.
Sort Posts: Previous Next
  •  08-31-2010, 3:34 AM 256312

    Pop3Client problem when connecting .NET

    Hi,

    We are having problems with the Pop3Client. Since we have upgraded to the Aspose.Network.dll version 5.4.0.0 (and also with your newer version 5.5.0.0). (The brown words are function params)

    Pop3Client oClientPop;
    oClientPop = new Pop3Client(cMailServer, nPort);
    oClientPop.Username = cUserName;
    oClientPop.Password = cPassword;
    oClientPop.EnableSsl = bSSL;
    oClientPop.Connect(true);

    The Connect() will return error: "User command error: -ERR Command is not valid in this state. -2"

    The function has worked well in the past and also works well with our ImapClient.

    Please resolve asap.

    Kind regard,

    Jan Stolk.

     

     

     

    Filed under: Pop3Client Connect
     
  •  09-01-2010, 3:43 AM 256514 in reply to 256312

    Re: Pop3Client problem when connecting .NET

    Hi Jan,

    I am sorry, I could reproduce this issue with the latest version 5.6. Tried with both SSL and non-SSL POP3 mail servers.

    Please also make sure that you set the security mode to implicit before connecting to POP3 server.

    oClientPop.SecurityMode = Pop3SslSecurityMode.Implicit;

    Best Regards,
    Saqib Razzaq
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
     
  •  11-17-2010, 4:41 AM 269245 in reply to 256312

    Re: Pop3Client problem when connecting .NET

    Please,

    The problem still remains. We have now used Aspose.Network.dll version 5.8.0.0 and the problem has not been solved yet.

    Pop3Client oClientPop;
    oClientPop =
    new Pop3Client(m_MailServer, m_MailPort);
    oClientPop.SecurityMode =
    Pop3SslSecurityMode.Implicit;
    oClientPop.Username = m_UserName;
    oClientPop.Password = m_PassWord;
    oClientPop.EnableSsl = m_EnableSsl;
    oClientPop.Connect(
    true);

    Pop3Exception: User command error:-ERR Command is not valid in this state.

    We are waiting for you to fix this problem a.s.a.p.

    Kind regards,

    Jan Stolk.

     

     

     

     
  •  11-17-2010, 5:08 AM 269254 in reply to 269245

    Re: Pop3Client problem when connecting

    Hi,

    We solved the issue. It is not an Aspose problem but Exchange 2007.

    Resolution:

    //Exchange 2007: POP3 ERR Command is not valid in this state

    //Resolution: Open your Exchange Shell and enter:

    //Set-PopSettings -LoginType PlainTextLogin

    //Restart your POP3 service

    Kind regards,

    Jan Stolk.

     
View as RSS news feed in XML