Home |
POP3 Client |
POP3 ClientThe POP3 Client can retrieve mail information and mail messages, possibly with attachments, from a POP3 server. The POP3 Client is an optional add-on for RTIP-32 and must be purchased in addition to RTIP-32 to be available. Applications requiring the POP3 Client must include header file Popapi.h and link library Mail.lib. The POP3 Client API is documented in the RTIP-32 Reference Manual. The POP client establishes am optionally encrypted TCP connection to the POP server sends back a greeting. The POP Client then sends login information, using the USER and PASS commands. The POP server responds starting with "+OK" if the login was valid and "-ERR" if the login was invalid. The POP Client may then send the STAT command, in response to which the POP server will send a reply of the form "+OK n m," where n is the number of messages and m is the size of the mail file. The POP Client may then send the LIST command, which lists the size of each mail message individually. Commands of the form "RETR n" and "DELE n" may be used to retrieve and delete messages, respectively, where n is the number of the message. The POP Client uses the QUIT command to terminate the session. Another important command available to the POP Client is of the form "TOP n," where n is a message number. The server will send back the header from message n.
|