Hey guys, i got a weird problem....When i compile the code i used the debugger, it runs fine until it gets to the part "DataTable dt = new DataTable();" and sends an error,the error is: "Error occured retrieving mail, A connection was succesfuly established with the server but than an eroor occured during the pre-login handshake".i dont think that the error has something to do with the problem, i just posted it because i believe that you would probably ask....Now here's what bugs me, i compiled the same project on another computer at work and it worked fine, and at my home computer it dosent work,how come?i tried changing the .net framework to basically all of them... but i got squat....by the way, I used DataTable in other projects before.....please help.....
try { if (pop3Client.Connected) pop3Client.Disconnect(); dataConnection.Open(); DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter("select ID,UserName,Password,PopServer,PopPort,PopSsl,PopName from tblAddress", dataConnection); da.Fill(dt); for (int j = 0; j <= dt.Rows.Count - 1; j++) { userName = dt.Rows[j]["UserName"].ToString(); password = dt.Rows[j]["Password"].ToString(); popServer = dt.Rows[j]["PopServer"].ToString(); portNum = Convert.ToInt32(dt.Rows[j]["PopPort"]); ssl = Convert.ToBoolean(dt.Rows[j]["PopSsl"]); dataConnection.Close(); pop3Client.Connect(popServer, portNum, ssl); pop3Client.Authenticate(userName, password); and the function go on....