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
Dont forget to click "Mark as Answer" on the post that helped you. ...
Member
370 Points
109 Posts
How to import mail messages from exchange server 2003 in c#
Feb 23, 2010 04:06 AM|shriram.gore|LINK
Hello All,
Subject as a question..
I am using "Jscape.Email.dll" to retrive emails from the server.
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
shriram gore.
software developer .
Member
370 Points
109 Posts
Re: How to import mail messages from exchange server 2003 in c#
Feb 23, 2010 08:29 AM|shriram.gore|LINK
Hello,
I have resolved this issue .Its a port problem.
I have set imp.Port value.
Thanks
shriram gore.
software developer .