各位好!我现有一个问题如下:我自己使用了C#自带的邮件发送功能写了一个邮件发送程序,邮件内容使用UTF-8编码方式。另外在网上找了一个POP3邮件接收的类并经过修改后可以正常工作(前提是使用我自己写的发邮件程序发送邮件,然后使用这个POP3类来接收邮件)。邮件的内容我使用Base64进行解码可以得到正常结果。可是现在我使用outlook发送邮件到我指定的邮箱后,再使用那个POP3类接收就有问题,outlook发送的邮件内容如下:--------------------------------------------------------------------------------------------------------------
"+OK 3000 octetsReceived: from zhuliang [183.14.201.1] by mail.astosys.com with ESMTP  (SMTPD-8.22) id AE9B01D4; Tue, 07 Aug 2012 16:15:23 +0800From: <[email protected]>To: <[email protected]>Subject: hshDate: Tue, 7 Aug 2012 16:15:11 +0800Message-ID: <[email protected]>MIME-Version: 1.0Content-Type: multipart/alternative;\tboundary=\"----=_NextPart_000_0000_01CD74B7.D3AD9CA0\"X-Mailer: Microsoft Office Outlook 11Thread-Index: Ac10dMP9J+/1nt79RRqIWLRxkg+abw==X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157X-RCPT-TO: <[email protected]>Status: RX-UIDL: 634035807X-IMail-ThreadID: ce90015d000005d2This is a multi-part message in MIME format.------=_NextPart_000_0000_01CD74B7.D3AD9CA0Content-Type: text/plain;\tcharset=\"gb2312\"Content-Transfer-Encoding: base64ueO45rfRIGd2ZmRHRkJOR0YNCg0K------=_NextPart_000_0000_01CD74B7.D3AD9CA0Content-Type: text/html;\tcharset=\"gb2312\"Content-Transfer-Encoding: quoted-printable<html xmlns:v=3D\"urn:schemas-microsoft-com:vml\" =xmlns:o=3D\"urn:schemas-microsoft-com:office:office\" =xmlns:w=3D\"urn:schemas-microsoft-com:office:word\" =xmlns=3D\"http://www.w3.org/TR/REC-html40\"><head><meta http-equiv=3DContent-Type content=3D\"text/html; charset=3Dgb2312\"><meta name=3DGenerator content=3D\"Microsoft Word 11 (filtered medium)\"><style><!-- /* Font Definitions */ @font-face\t{font-family:=CB=CE=CC=E5;\tpanose-1:2 1 6 0 3 1 1 1 1 1;}@font-face\t{font-family:\"\\@=CB=CE=CC=E5\";\tpanose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal\t{margin:0cm;\tmargin-bottom:.0001pt;\ttext-align:justify;\ttext-justify:inter-ideograph;\tfont-size:10.5pt;\tfont-family:\"Times New Roman\";}a:link, span.MsoHyperlink\t{color:blue;\ttext-decoration:underline;}a:visited, span.MsoHyperlinkFollowed\t{color:purple;\ttext-decoration:underline;}span.EmailStyle17\t{mso-style-type:personal-compose;\tfont-family:Arial;\tcolor:windowtext;} /* Page Definitions */ @page Section1\t{size:595.3pt 841.9pt;\tmargin:72.0pt 90.0pt 72.0pt 90.0pt;\tlayout-grid:15.6pt;}div.Section1\t{page:Section1;}--></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D\"edit\" spidmax=3D\"1026\" /></xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D\"edit\">  <o:idmap v:ext=3D\"edit\" data=3D\"1\" /> </o:shapelayout></xml><![endif]--></head><body lang=3DZH-CN link=3Dblue vlink=3Dpurple =style=3D'text-justify-trim:punctuation'><div class=3DSection1 style=3D'layout-grid:15.6pt'><p class=3DMsoNormal><font size=3D1 face=3D=CB=CE=CC=E5><span =style=3D'font-size:9.0pt;font-family:=CB=CE=CC=E5'>=B9=E3=B8=E6=B7=D1</span></font><font size=3D1 =face=3DArial><spanstyle=3D'font-size:9.0pt;font-family:Arial'> <span =lang=3DEN-US>gvfdGFBNGF<o:p></o:p></span></span></font></p></div></body></html>------=_NextPart_000_0000_01CD74B7.D3AD9CA0--\r\n"
--------------------------------------------------------------------------------------------------------------我现在想怎样解析这outlook邮件里面的内容。望各位兄弟帮下忙,在此先谢谢了!