NpsPop3 is used to retrieve email via POP3 protocol.
| NpsPop3 |
NpsPop3(String host,int port) Constructor. |
| void |
Connect(String user,String passwd) Connect to the pop3 server for authentication using identified user and password. |
| void |
ConnectSSL(String user,String passwd) Connect to the pop3 server using SSL for authentication. |
| void |
PostTo(NpsTopic topic,String prefix_subject,boolean delete_mail) Retrieve all unread messages and post them to identified topic. If prefix_subject is assigned, then only these mails which subject starts with this prefix will be handled. prefix_subject=null or prefix_subject="" means all unread messages will be handled. delete_mail=true means delete the mail after submitting the article successfully. |
| void |
Close() 关闭连接,并更新邮箱。 |