We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not able to login to POP3 client using my smtp server settings

Hi,
I am not able to connect to my smtp server using POP3 clent. It always gives me the error message ‘Invalid POP3 response’. What is the problem? I am using aspose.network.net with my vs2008 3.5 framework environment. Let me know the solution ASAP.


Thank you,
Sajeesh

Hi,

Could you please tell us which version of Aspose.Network dll and OS (32/64-bit) are you using? The username and password might be same for smtp and pop3 servers, but port and ssl settings (if required) are different.

Hi,
I am using 4.1.2.0 version of Aspose.network.dll and Windows XP SP2 32-bit.



Regards,
sajeesh

Hi Sajeesh,

I am sorry, I was not able to reproduce the problem at my end. I used the following code to connect to pop3 mail server to connect and download messages.

Pop3Client client = null;

try
{
Console.WriteLine(“Connecting to pop3…”);
client = new Pop3Client(“host”, 110, "user@domain.com", “pwd”);
client.Connect(true);
Console.WriteLine(“Connected to pop3.”);

if (client.GetMessageCount() > 0)
{
Console.WriteLine(“Checking messages…”);
Pop3MessageInfoCollection msgInfoColl = client.ListMessages();

// check all messages in inbox
foreach (Pop3MessageInfo msgInfo in msgInfoColl)
{
MailMessage msg = client.FetchMessage(msgInfo.SequenceNumber);
Console.WriteLine("Subject: " + msg.Subject);
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
client.Disconnect();
Console.WriteLine(“Disconnected.”);
}