| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: problem sending comma |
"Lenny Vaz" wrote in message
news:...
> I'm having some problems creating a very simple pop3 client. The only thing
> this client is supposed to do is poll the pop3 server for new messages. The
> client will connect (which it does successfully), provide a username via the
> USER command, provide a password via the PASS command, and retrieve
> statistics via the STAT command.
>
> My problem is this: when I try to send the USER command (followed by Chr(13)
> + Chr(10) for a carriage return/line feed), or any command for that matter,
> the pop3 server returns with "ERR unrecognized command". I
can't find
> anything wrong with the commands that I am sending to the server, they are
> in the format: USER theusername
>
> Here is the snippet of code, it's pretty simple:
>
> 'stream for sending data to the server
> Dim output As NetworkStream
>
> 'objects for reading and writing to stream
> Dim writer As BinaryWriter
> Dim reader As BinaryReader
>
> 'message to send to server
> Dim message As String = ""
>
> Dim popclient As TcpClient
> popclient = New TcpClient
> popclient.Connect(gHost, gPort)
> output = popclient.GetStream()
> writer = New BinaryWriter(output)
> reader = New BinaryReader(output)
> statusbar.Text = "Connected to " & gHost &
" on port " & gPort & "."
>
>
>
> Pause(1)
>
> statusbar.Text = "Verifying username and password..."
> message = "USER " + gUsername + Chr(13) + Chr(10)
> writer.Write(message)
>
> Pause(2)
>
>
>
> writer.Write(message)
> statusbar.Text = message
> Pause(1)
>
>
>
> message = "STAT"
> writer.Write(message)
>
>
>
> In summary, the pop3 server is responding with "-ERR unrecognized
command"
> for any command I send. Any ideas?
If your conncting to a Unix box, and you probably are, try just
sending a line feed. The carriage return might not be necessary.
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com
---
* RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
* RgateImp.MoonDog.BBS at 11/17/04 9:38:58 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)SEEN-BY: 633/267 270 5030/786 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.