# pop3

**URL:** <https://forum.kirupa.com/t/pop3/306810>\
**Category:** Uncategorized\
**Created:** [March 22, 2010, 7:26pm UTC](https://forum.kirupa.com/t/pop3/306810 "2010-03-22T19:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gooo](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@Gooo](https://forum.kirupa.com/u/Gooo)\
**Post date:** [March 22, 2010, 7:26pm UTC](https://forum.kirupa.com/t/pop3/306810/1 "2010-03-22T19:26:00Z")

</div>

Hi

I’m trying to write a program that checks my e-mailbox using POP3. When I open cmd and type the following:  
telnet server 110  
USER username  
PASS password  
etc.  
it works. When I use my program to do the above it gets up to the telnet server 110 and I receive an +OK message, nothing happens after the USER username. I don’t receive an +OK or +ERR message. Even if I replace the USER with something that isn’t supposed to work, I still don’t receive an error message.

My code:

```auto
Socket s = new Socket(mailServer, portNumber);
inputS = new BufferedReader(new InputStreamReader(s.getInputStream()));
outputS = new PrintWriter(new OutputStreamWriter(s.getOutputStream()),true);
String response = inputS.readLine();
System.out.println(response);
outputS.println("USER " + name);
outputS.println("PASS " + password);
outputS.println("QUIT");
s.close();

```

Where am I going wrong?
