Thanks ,The code is ok with Gmail but how about mail attachments
how to download ? second what about read message as Msgcount only
shows Unread message .
Thanks again
2 things. it doesn't seem to close out and when I run it through a timer it pukes, though I think I got around that, and 2, how can I do this NOT using SSL. My main account it on godaddy and it pukes on SSL with a "The remote certificate is invalid according to the validation procedure" error. So I would like to use the code [I am using it just to get a count of emails on the server" using just the standard 110 port non-ssl. Might you be able to assist me on this?
Thanx for using the code.
1) What do you mean by (it doesn't seem to close out) ?
2) Using SSL is a must when you work with Gmail,Hotmail because this is mail server settings (it is not an option, it is a must in this case) ...
If you wish to not use SSL with you domain just simply don't use the (System.Net.Security m_sslStream) and replace it with the (NetworkS_tream) ... for example :
This code in the CmdDownload_Click event
1. NetworkS_tream = POP3.GetStream 'Read the stream
2. m_sslStream = New SslStream(NetworkS_tream) 'Read SSL Stream
3. m_sslStream.AuthenticateAsClient(PopHost) 'Auth.
4. Read_Stream = New StreamReader(m_sslStream) 'Read the stream
5. StatResp = Read_Stream.ReadLine()
You won't be needing lines #2, #3, #4 ..... and the same with all the security lines ..
While this code probably works quite nicely and is at least well formatted, I see very little actual discussion of what the code is doing and why. For instance it would be nice to have an explanation of how the Tcp streaming is actually working, things like the use of SSL, use of ASCII text encoding and whether UTF-8 should be used, ought to be pointed out. I feel you probably should have completed your project before posting and then have discussed the code thoroughly given that there isn't much to be gleamed just from the code alone.
You are 100% right, i will finish all of this as soon as i get the project works, i will discuss all of this you mentioned and more ... The reason why i published it is because i wanted to be the (first) .. and as you can see i already post 1 update in 2 days and preparing the other update by tomorrow ... Thanx for you review !
Yes as an editor myself I spotted your update and approved it - I think it only requires two more approvals to be published. Anyway good to hear you are working on more for this article! I will keep an eur on it and upvote if this improves further.
Yea, you are right.
It's just i used to had exceptions using the Textbox.text implicitly instead of using variables so when i was dealing with Server IP i got an exception as it is an integer so i used ToString(), but since i don't anymore, it should not stay there ... Thanx!