|
-
Aug 9th, 2012, 10:31 PM
#1
Thread Starter
Lively Member
Receive E-mails
Hello,
I'm trying to figure out who to create a simple small Mail-Client for my own as a .Net Application, now i'm stuck in no-where.
All i want at this point is to receive response from Pop3 server, which seems to be hell impossible to get.
I've tried all methods and i get response as NULL or nothing from Server i register with like Hotmail (pop3.live.com 995) or Gmail (pop.gmail.com 995)
I have this form :
TextBox1 - Multiline
Button1
The code for connecting to the server (i.e: Gmail.com) in order to see (+ok) response is :
Code:
Imports System.IO
Imports System.Net.Sockets
Imports System.Text
Class Form1
Dim Network_Stream As NetworkStream
Dim Read_Stream As StreamReader
Private Sub TextBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Click
Dim POP3 As New TcpClient
Dim PopHost As String = "pop.gmail.com"
Dim UserName As String = "[email protected]"
Dim Password As String = "MyPassWord"
Cursor = Cursors.WaitCursor
POP3.Connect(PopHost, 995)
Network_Stream = POP3.GetStream()
Read_Stream = New StreamReader(Network_Stream)
Dim Return_String As String
Return_String = Read_Stream.ReadLine + vbCrLf
TextBox1.Text = Return_String.ToString
Cursor = Cursors.Default
End Sub
End Class
- I configured Hotmail.com and Gmail.com for POP3 options and they are both are ok.
- I get nothing from the above code, i event tested it with hotmail and still the same nothing.
- I'm supposed to get (+ok) at textbox1 .... but i get nothing at all ...
also by the way : when i used Telnet to connect to both servers, it gave me nothing also ..... i think the problem is same i guess, but i'm not sure what to do ....
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|