C#???POP3??????????
???????????? ???????[ 2013/10/12 16:26:33 ] ????????
???????????????C#????????????POP3Э?????????????????????C#?????????????????????????????POP3Э?????????????????
????????????????????????????????
??????????????????????????????????????????????????????????????????POP3Э??????110???
??????????????????????????????????????????
????+OK……
???????+OK??POP3Э????????????????????????SMTPЭ???????÷??????????????????????+OK????-ERR?????У?+OK?????????????-ERR????????????
?????????????????????USER <?????>
?????????????????????????????????Щ?????????????Сд??????
??????????????+OK???????????PASS <????>
??????????????+OK?????????Щ????????????????磺+OK 1 message(s) [1304 byte(s)] ??????????????????????????????????????????STAT??????????????????STAT??????????????????????????????????????????С??
????????????????????????RETR???????????????????RETR??????????
????RETR <??????>
????????????????????+OK??????????????????????????????????????к?SMTPЭ?????????????????????????????????β?????
??????????洢?????????DELE????????????е????????????е??????????????????????????????????????????DELE??????????
????DELE <??????>
???????????????????RSET???????????????????????????????????????????????????????Bye Bye????????????????QUIT??????????POP3?????????
????????????????????????POP3???????????????????????????????????????????????????????????????????У?????????????????TcpClient???NetworkStream??TcpClient????????C#??????????????????????????????????????????????????????????????????????????????????NetworkStream???????????????????????????????.Net???????????????????????????????????????????????????????????????????????????????????????Ч?????????£?
??????????????????£?
?????????????VS.Net???????????????????????????"Visual C#???"????????????"Windows ??ó???"?????????????"MailReceiver"??????"???"?????
????????????????????檔?????????????????????????Label????????TextBox????????RichTextBox????????CheckBox????????ListBox??????????Button?????????????????????????1?????
?????????????1???????????????????????к????????????????????????????????
????![pop3][pop3 2]
?????????????????д????????????????????????????Щ????????磺TcpClient??NetworkStream???????????????????????????????Namespace????
????using System.Net;
????using System.Net.Sockets;
????using System.IO;
?????????????????????????Щ???е?????????
????public TcpClient Server;
????public NetworkStream NetStrm;
????public StreamReader RdStrm;
????public string Data;
????public byte[] szData;
????public string CRLF = "
";
??????????????????????????????????????????????????巋???????Connect?????????????????????POP3????????????????????????????????????е??????????????????????????????STAT??????????????????????????????????????С?????????????亯????????£?
??????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11