Hi,
I'm building a web-based email client that connects to a pop3 server (mainly Hotmail, but should work for any server). I'm using the Lumisoft.net.dll and everything is working well. The thing is, I have a page that works as a log in, and a page to view all emails (inbox) and then another page to view emails individualy. Right now I reconnect and re-authenticate with the server every time I change from a page to another and pass the user account and password through session variables (not recommended, I know) because I don't know how to declare the pop3_client object as a global variable. The Hotmail pop3 server (pop3.live.com) limits the amount of times you can connect to it in 15 minutes. If I continue working like this, after reading a few emails or refreshing the inbox, the server will shut the connection. Is there a way that I could connect just once and then use the same connection through out the session to retrieve and send emails, and then dispose the connection when the user logs off? I'm very new to asp.net (and web programming in general), and I know this would be easier on a desktop application but I just can't seem to get it here. I've searched everywhere for answer but I can't find it. Thanks in advance.
Edit:
This is the error I get from the server: -ERR Exceeded the login limit for a 15 minute period. Reduce the frequency of requests to the POP3 server.