📄 despop3client.aspx.htm
字号:
{
Console.WriteLine(<span class="code-string">"</span><span class="code-string">Attachment name="</span>+
multipart.Name); <span class="code-comment">//</span><span class="code-comment"> ... etc
</span>
}
}
}
}
email.CloseConnection();
}
<span class="code-keyword">catch</span>(Pop3LoginException)
{
Console.WriteLine(<span class="code-string">"</span><span class="code-string">You seem to have a problem logging in!"</span>);
}</pre>
<p>I have also implemented other functionalities within this class
library which includes saving attachments (currently done
automatically) in their original format, a getter for the filename,
extension etc.</p>
<p><i>Have a look and see what you think: I definitely found it fun to write and explore!!</i></p>
<!-- Article Ends -->
<!-- Main Page Contents End -->
</div>
</span>
<form name="aspnetForm" method="post" action="despop3client.aspx" id="aspnetForm" style="margin: 0pt; padding: 0pt;">
<div>
<input name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwMDUyNjYzMjhkZN3SWVxRvWdoXncT9bA93p7HOswR" type="hidden">
</div>
<h2>License</h2>
<div id="ctl00_LicenseTerms"><p>This
article has no explicit license attached to it but may contain usage
terms in the article text or the download files themselves. If in doubt
please contact the author via the discussion board below.</p><p>A list of licenses authors might use can be found <a href="http://www.codeproject.com/info/Licenses.aspx">here</a></p></div>
<h2>About the Author</h2>
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<tbody><tr valign="top">
<td id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberPhotoTable" style="width: 155px;" valign="top">
<b><a id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberProfileLink" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mid=803026">Desmond McCarter</a></b><br><br>
<center></center><br>
<span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberType" class="SmallText"></span>
</td>
<td> Des is a Technical Architect working for a private telecoms based
company in the United Kingdom. He has been involved in programming for
over 14 years and has worked on many platforms including UNIX, Linux
and Windows.<br><br>Language
specialities are C, C++, C#.NET, Java & J2EE and shell scripting
(especially on UNIX/Linux). Also enjoys writing and optimising SQL
scripts.<br><br>Des is engaged to a lovely girl called Lisa!<br><br>
<table>
<tbody><tr id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_jobTitleRow">
<td class="SmallText" nowrap="nowrap">Occupation: </td>
<td width="100%"><span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberJobTitle" class="SmallText">Web Developer</span></td>
</tr>
<tr id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_locationRow">
<td class="SmallText">Location: </td>
<td width="100%"><span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberLocation" class="SmallText"><img src="despop3client.aspx_files/UK.gif" alt="United Kingdom" width="16" height="11"> United Kingdom</span></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<br>
<table id="ctl00_PopularArticlesRow" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top">
<td style="width: 100%;">
<h2>Other popular Internet / Network articles:</h2><ul><li><a href="http://www.codeproject.com/KB/IP/AsyncSocketServerandClien.aspx">An Asynchronous Socket Server and Client</a><div class="SmallText">An asynchronous socket server and client with encryption and compression.</div></li><li><a href="http://www.codeproject.com/KB/IP/MyDownloader.aspx">MyDownloader: A Multi-thread C# Segmented Download Manager</a><div class="SmallText">Sample application that manages multiple segmented downloads and supports HTTP, FTP and YouTube video downloads</div></li><li><a href="http://www.codeproject.com/KB/IP/ndk.aspx">Network Development Kit 2.0</a><div class="SmallText">Network Development Kit is a set of simple classes for a client-server architecture.</div></li><li><a href="http://www.codeproject.com/KB/IP/drvfltip.aspx">Developing Firewalls for Windows 2000/XP</a><div class="SmallText">An article about developing Firewalls for Windows 2000/XP</div></li><li><a href="http://www.codeproject.com/KB/IP/serversocket.aspx">Multi-threaded Client/Server Socket Class</a><div class="SmallText">A multi-threaded based Client/Server Socket Communication class</div></li></ul>
<h2></h2>
</td>
<td>
<script type="text/javascript">document.write(unescape("%3ca%20href%3d%22http%3a%2f%2fwww.codeproject.com%2fRedir.aspx%3fadid%3d6151%26way%3dban%22%20target%3d%22_blank%22%20rel%3d%22nofollow%22%3e%3cimg%20src%3d%22http%3a%2f%2fwww.codeproject.com%2fscript%2fAnn%2fServeImg.aspx%3fFile%3d%252fscript%252fadmentor%252fimages%252f300x250.png%26C%3dFalse%26id%3d6151%22%20alt%3d%22%22%20border%3d%220%22%20width%3d%22300%22%20height%3d%22250%22%3e%3c%2fa%3e"));</script><a href="http://www.codeproject.com/Redir.aspx?adid=6151&way=ban" target="_blank" rel="nofollow"><img src="despop3client.aspx_files/ServeImg_004.htm" alt="" width="300" border="0" height="250"></a>
</td>
</tr>
</tbody></table>
<div id="ctl00_AddTo_AddTo" style="margin: 10px;">
<script language="JavaScript" type="text/javascript">
var addtoMethod=1;
var AddURL = document.location.href;
var AddTitle = escape(document.title);
DrawLinks(100, 0, "SmallText Bold", "AddTo")
</script><span class="SmallText Bold">Add this article to: </span> <a class="AddTo" title="Add this page to Digg" onclick="return addto(0);" href="#"><img src="despop3client.aspx_files/AddTo_Digg.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Del.icio.us" onclick="return addto(1);" href="#"><img src="despop3client.aspx_files/AddTo_Delicious.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Google" onclick="return addto(2);" href="#"><img src="despop3client.aspx_files/AddTo_Google.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Windows Live" onclick="return addto(3);" href="#"><img src="despop3client.aspx_files/AddTo_Live.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Yahoo! MyWeb" onclick="return addto(4);" href="#"><img src="despop3client.aspx_files/AddTo_Yahoo.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Technorati" onclick="return addto(5);" href="#"><img src="despop3client.aspx_files/AddTo_Technorati.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Blink" onclick="return addto(6);" href="#"><img src="despop3client.aspx_files/AddTo_Blink.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Facebook" onclick="return addto(7);" href="#"><img src="despop3client.aspx_files/AddTo_Facebook.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Furl" onclick="return addto(8);" href="#"><img src="despop3client.aspx_files/AddTo_Furl.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Simpy" onclick="return addto(9);" href="#"><img src="despop3client.aspx_files/AddTo_Simpy.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Reddit" onclick="return addto(10);" href="#"><img src="despop3client.aspx_files/AddTo_Reddit.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Newsvine" onclick="return addto(11);" href="#"><img src="despop3client.aspx_files/AddTo_Newsvine.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Stumbleupon" onclick="return addto(12);" href="#"><img src="despop3client.aspx_files/AddTo_stumbleupon.png" width="16" align="absmiddle" border="0" height="16"></a> <a class="AddTo" title="Add this page to Mr. Wong" onclick="return addto(13);" href="#"><img src="despop3client.aspx_files/AddTo_MrWong.png" width="16" align="absmiddle" border="0" height="16"></a>
</div>
<table id="ctl00_RateArticleRow" class="RatingBar" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><a href="#_top">Article Top</a></td>
<td align="right">
<table width="100%" cellpadding="0" cellspacing="0"><tbody><tr>
<td id="ctl00_RateArticle_VoteResultDiv" width="100%" align="right" nowrap="nowrap">
<span id="voteRes"></span>
<img id="loaderImg" alt="loading..." src="despop3client.aspx_files/ajax-loader.gif" style="display: none;" width="16" height="16">
</td>
<td id="voteTbl" style="white-space: nowrap;" class="SmallText" align="right">
<table><tbody><tr>
<td id="ctl00_RateArticle_RateText" style="padding-right: 5px; white-space: nowrap;"><i><b>Rate this Article for us!</b></i></td>
<td id="ctl00_RateArticle_StartForm" align="right"><i> Poor</i></td>
<td id="ctl00_RateArticle_VoteFormDiv" style="white-space: nowrap;" align="left">
<table id="ctl00_RateArticle_VoteRBL" border="0">
<tbody><tr>
<td><input id="ctl00_RateArticle_VoteRBL_0" name="ctl00$RateArticle$VoteRBL" value="1" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_1" name="ctl00$RateArticle$VoteRBL" value="2" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_2" name="ctl00$RateArticle$VoteRBL" value="3" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_3" name="ctl00$RateArticle$VoteRBL" value="4" type="radio"></td><td><input id="ctl00_RateArticle_VoteRBL_4" name="ctl00$RateArticle$VoteRBL" value="5" type="radio"></td>
</tr>
</tbody></table>
</td>
<td id="ctl00_RateArticle_EndForm" align="left" nowrap="nowrap"><i>Excellent</i>
<input name="ctl00$RateArticle$SubmitRateBtn" value="Vote" onclick="return rateItem(6062,2);" id="ctl00_RateArticle_SubmitRateBtn" class="FormButton" type="submit">
</td>
<td><span id="ctl00_RateArticle_ErrorMessage"></span></td>
</tr></tbody></table>
</td>
</tr></tbody></table>
</td>
</tr>
</tbody></table>
<div>
<input name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWCAKxks6wBgLAlMXDBwLBlMXDBwLClMXDBwLDlMXDBwLElMXDBwLP+++tCwK5upDkC0nHKJvhSzrG+VmC5eJFAcQ9SnM7" type="hidden">
</div></form>
<div style="padding: 10px; overflow: hidden; text-align: center; white-space: nowrap;">
<iframe src="despop3client.aspx_files/ServeHTML.htm" scrolling="no" width="468" frameborder="0" height="60"></iframe>
<iframe src="despop3client.aspx_files/ServeLinks.htm" scrolling="no" width="300" frameborder="0" height="60"></iframe>
</div>
<a name="_comments"></a><!-- Forum Start -->
<div id="_MessageBoard" onclick="return SwitchMessage(event, null)">
<table id="ForumTable" class="Frm_MainTable" cellpadding="0" cellspacing="0">
<tbody><tr>
<td><form action="/script/Forums/SetOptions.aspx?floc=%2fKB%2fIP%2fdespop3client.aspx&fid=33306" method="get" style="margin: 0pt; padding: 0pt;">
<input name="fid" value="33306" type="hidden"><input name="currentQS" value="?floc=%2fKB%2fIP%2fdespop3client.aspx&fid=33306" type="hidden"><input name="floc" value="/KB/IP/despop3client.aspx" type="hidden"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tbody><tr class="Frm_HeaderRow1">
<td style="white-space: nowrap;"><img src="despop3client.aspx_files/forum_faq.gif" alt="FAQ" width="16" align="middle" border="0" height="16"> <a href="http://www.codeproject.com/script/Forums/FAQ.aspx"><b>FAQ</b></a> </td><td style="white-space: nowrap; text-align: right;">Noise Tolerance<select size="1" class="Frm_DropDown" name="noise">
<option value="1">Very High</option><option value="2">High</option><option selected="selected" value="3">Medium</option><option value="4">Low</option><option value="5">Very Low</option>
</select></td><td colspan="2" style="white-space: nowrap; text-align: right;"><img src="despop3client.aspx_files/forum_search.gif" alt="Search" width="16" align="top" border="0" height="15"> <a href="http://www.codeproject.com/script/Forums/Search.aspx?fid=33306">Search Messages</a> </td><td style="text-align: right;"><input value="Set Options" name="submit" class="Frm_Button" type="submit"></td>
</tr><tr class="Frm_HeaderRow2">
<td style="width: 100%;"> </td><td style="white-space: nowrap; text-align: right;">Layout<select size="1" class="Frm_DropDown" name="view">
<option selected="selected" value="Quick">Normal</option><option value="Topic">Expand Root Messages</option><option value="Expanded">Expand All Messages</option><option value="Thread">Thread View</option><option value="Normal">No Javascript (slow)</option><option value="Preview">No Javascript Preview</option>
</select> </td><td style="white-space: nowrap;">Per page<select size="1" class="Frm_DropDown" name="mpp">
<option value="10">10</option><option selected="selected" value="25">25</option><option value="50">50</option>
</select> </td><td colspan="2"> </td>
</tr>
</tbody></table>
</form></td>
</tr><tr>
<td><a name="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -