User1545643680 posted
Hello All,
Subject as a question..
I am using "Jscape.Email.dll" to retrive emails from the server.
String lsLicenseKey = "My LicenseKey";
Imap imp = new Imap("192.168.1.10", msUserName, msPassword);
imp.LicenseKey = lsLicenseKey;
try
{
imp.Connect();
if (imp.GetMessageCount() > 0)
{
Response.Write(imp.GetMessageCount());
}
}
catch (System.Exception ex)
{
throw new System.Exception(ex.Message);
}
finally
{
// Disconnect from the server.
imp.Disconnect();
}
I am getting this error.
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at Jscape.Email.Imap.Connect()
Thanks in advance