To start, look into the Winsock Control, then read up on documentation on the POP3 protocol.