Cannot connect to imap server

hi Dear
I cannot connect to imap server via this code. i have get below code from your site.
It throw to Exception and says ‘Unknown value has been detected’

ImapClient client = new ImapClient();
client.Host = “mail.famnegar.com”;
client.Port = 143;
client.Username = “F@famnegar.com”;
client.Password = “123456”;

client.Connect(true);

client.SelectFolder(“Inbox”);
String strTemp;
strTemp = “You have " + client.CurrentFolder.TotalMessageCount.ToString() + " messages in your account.”;

lblMessage.Text = strTemp;

//disconnects to imap server.
client.Disconnect();


help plz
tanks

Hi Elma,

Thank you for considering Aspose.Email.

I’m not sure about why this exception arises, as this works fine at my end with Gmail and Exchange server. Could you please share with us details about the server you are trying to connect? In case it is an SSL enabled email server, you need to consider setting the SecurityMode and EnableSSL flag as well (as mentioned in this [Article ](http://www.aspose.com/docs/display/emailnet/Connecting+with+SSL+Enabled+IMAP+Server)).

In case, the issue still persists, I would request you to create a test account on your server for us and provide us its credentials here for our investigation into this issue. We’ll look into it and assist you further.

tanks

test@famnegar.com
pass:Test123456

this is my test account on server.
I can connect to server whit pop3 but when i used Imap exception arises.

Hi Elma,


Thanks for the additional details.

Could you also please provide the web browser address of this server so that we can login to it using browser in case we need to identify the settings at server? This will help us assist you further in much better manner.

Hi
I Connect to emails via this address
http://famnegar.com:8383
but I want connect with programing to have logFile from my emails.

protected void Button1_Click(object sender, EventArgs e)
{
try
{


ImapClient client = new ImapClient();
client.Host = “mail.famnegar.com”;
client.Port = 143;
client.Username = "F@famnegar.com";
client.Password = “F123”;




client.Connect(true);


client.SelectFolder(“Inbox”);
String strTemp;
strTemp = “You have " + client.CurrentFolder.TotalMessageCount.ToString() + " messages in your account.”;

lblMessage.Text = strTemp;


client.Disconnect();

}
catch (Exception ex)
{
string s = ex.Message.ToString();
}
}

protected void Button2_Click(object sender, EventArgs e)
{
try
{
// initialize pop3 client
Pop3Client client = new Pop3Client();
client.Host = “mail.famnegar.com”;
client.Port = 110;
client.Username = "F@famnegar.com";
client.Password = “F123”;



// connect to pop3 server and login
client.Connect(true);

// get list of messages
Pop3MessageInfoCollection msgCollection = client.ListMessages();
GridView1.DataSource = msgCollection;
GridView1.DataBind();

client.Disconnect();
}
catch (Exception ex)
{
}
}

this is my code I have no Problem to connect with pop3 . it throw to Exception in yellow part.
thanks

Hi Elma,

elham_tak:

I Connect to emails via this address
http://famnegar.com:8383

I'm afraid to share that this URL is not valid as I'm unable to browse it through the browser which gives the error :"Google Chrome could not find famnegar.com:8383" as well as unable to ping it. Could you please confirm to us if the information provided is correct? Your feedback will enable us to assist you further.

Hi
thanks

you mean that i clean this url from the page???
I test this with
test@famnegar.com
pass:Test123456
and I can connect to server in fire fox and chrom

Hi Elma,

I have successfully connected to the mail server using same url/credentials and am sorry for the inconvenience caused to you.

I was able to reproduce this issue at my end using Aspose.Email for .NET 3.5.0 and have logged it in our bug tracking system under issue id: NETWORKNET-34155. Development team will look into it and once we have any information regarding the resolution of this issue, we'll update you here via this thread.

If you have any other query/inquiry regarding Aspose.Email, please feel free to post to us. We'll try to assist you further as soon as possible.

P.S. Please keep the test account credentials intact until the issue is investigated and resolved or we update you.

The issues you have found earlier (filed as NETWORKNET-34155) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.