高分求助_html邮件解码问题_急

时间:2021-09-04 07:57:23
----------------------------------------------------------
求解html邮件的C#代码, 分不够再加, 急!!!!
内容如下(邮件头省略):
----------------------------------------------------------
<html=3E
<head=3E
<title=3E</title=3E
<meta http-equiv=3D'Content-Type' content=3D'text/html; charset=3Dgb2312'=3E=

<style type=3Dtext/css=3E
body,tr,td{
font-size: 12px;
color:#663300;
line-height:150%;
}
body{
background-color: #99CCCC;
}
=2Eta{
font-size: 12px;
color:#444444;
font-family:Verdana, Arial, Helvetica, sans-serif
line-height:150%;
}
=2Etitle { font-size: 13pt; color:#339900; line-height:150%}
a:link{color:#FF6600; text-decoration:underline;}
a:visited{color:#ff6600; text-decoration:underline;}
a:active{color:#01466F; text-decoration:underline;}
a:hover{color:#FF6000; text-decoration:none;
font-size: 13px;}
</style=3E
</head=3E

<body =3E
<table width=3D'600' height=3D"140" align=3D'center' cellpadding=3D'0' cells=
pacing=3D'1' bgcolor=3D"#996600"=3E
<tr=3E<td height=3D"101" background=3D"images/supplier=5Fconnect/supplier=5F=
conn=5Fbg2=2Egif" bgcolor=3D"#F7F4EE" =3E<table width=3D"100%" height=3D"60"=
  border=3D"0" cellpadding=3D"2" cellspacing=3D"0"=3E
  <tr=3E
    <td width=3D"47%" align=3D"center" bgcolor=3D"#FFFFFF"=3E<img src=3D"htt=
p://ebusiness=2Ecantonfair=2Eorg=2Ecn/en/images/index=5Fen/images/index=5F01=
=2Egif" width=3D"245" height=3D"37"=3E </td=3E
    <td width=3D"53%" align=3D"right" bgcolor=3D"#FFFFFF"=3E<a href=3D"http:=
//ebusiness=2Ecantonfair=2Eorg=2Ecn" target=3D"=5Fblank"=3E<img src=3D"http:=
//ebusiness=2Ecantonfair=2Eorg=2Ecn/en/images/index=5Fen/images/index=5F02=2E=
gif" width=3D"219" height=3D"49" border=3D"0"=3E</a=3E</td=3E
  </tr=3E
</table=3E
     <table width=3D"100%"  border=3D"0" cellspacing=3D"0" cellpadding=3D"0"=
=3E
        <tr=3E
          <td bgcolor=3D"#FFFFFF"=3E<img src=3D"http://ebusiness=2Ecantonfai=
r=2Eorg=2Ecn/en/images/index=5Fen/images/index=5F04=2Egif" width=3D"599" hei=
ght=3D"20"=3E</td=3E
        </tr=3E
      </table=3E
     <table width=3D'100%' align=3D'center' cellpadding=3D'15' cellspacing=3D=
'0'=3E
        <tr=3E
          <td height=3D"101"=3E
              <p align=3D"left"=3E=D7=F0=BE=B4=B5=C4 =F3=C3=CF=C8=C9=FA =C5=AE=
=CA=BF/=CF=C8=C9=FA=A3=BA<br=3E   
&nbsp;&nbsp;&nbsp; =C4=FA=BA=C3=A3=A1 <br=3E           
          <br=3E
              &nbsp;&nbsp;&nbsp;&nbsp; =D5=E2=C0=EF=CA=C7=B9=E3=BD=BB=BB=E1=CD=
=F8=D5=BE<a href=3D"http://ebusiness=2Ecantonfair=2Eorg=2Ecn/cn/vip=5Fnew=2E=
asp"=3EVIP=BB=E1=D4=B1</a=3E=D7=A8=CF=ED=B5=C4=C3=B3=D2=D7=B4=E9=BA=CF=CD=C6=
=BC=F6=B7=FE=CE=F1=A3=A1      
<br=3E&nbsp;&nbsp; &nbsp; =CA=D5=B5=BD=C4=FA=B5=C4=C8=B7=C8=CF=BA=F3=A3=AC=CE=
=D2=C3=C7=D2=D1=BD=AB=B9=F3=B9=AB=CB=BE=B5=C4=D7=CA=C1=CF=CD=C6=BC=F6=B8=F8=D2=
=D4=CF=C2=BF=CD=C9=CC=A1=A3=CF=D6=BD=AB=B8=C3=BF=CD=C9=CC=B5=C4=CF=EA=CF=B8=C1=
=AA=CF=B5=B7=BD=CA=BD=B7=A2=CB=CD=B8=F8=B9=F3=B9=AB=CB=BE=A3=AC=B7=BD=B1=E3=C4=
=FA=BC=B0=CA=B1=D3=EB=C6=E4=C8=A1=B5=C3=C1=AA=CF=B5=A1=A3=D7=A3=C4=FA=B3=C9=B9=
=A6=A3=A1
            <br=3E
              <div align=3D"center"=3E<center=3E
                <table width=3D"95%" border=3D"0" cellpadding=3D"3" cellspac=
ing=3D"1" bordercolorlight=3D"#00FFCC" bordercolordark=3D"#006699" bgcolor=3D=
"#EAB88A"=3E
                  <tr bgcolor=3D"#F7F2EA"=3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#F7F2EA"=3E=
<strong=3ECompany:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"35" bgcolor=3D"#F7F2EA"=3E&n=
bsp;aristo industries (regd)</td=3E
                  </tr=3E
                  <tr bgcolor=3D"#FAF8F4"=3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#FAF8F4"=3E=
<strong=3ECountry:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"35"=3E&nbsp;=D3=A1        =B6=
=C8=2E</td=3E
                  </tr=3E
                  <tr bgcolor=3D"#F7F2EA"=3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#F7F2EA"=3E=
<strong=3EPerson to Contact:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"35"=3E&nbsp;sanjeev kanwar</=
td=3E
                  </tr=3E
                  <tr bgcolor=3D"#FAF8F4"=3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#FAF8F4"=3E=
<strong=3EE-mail:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"35"=3E&nbsp;ankoorkanwar@yah=
oo=2Eco=2Ein</td=3E
                  </tr=3E
                  <tr bgcolor=3D"#F7F2EA"=3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#F7F2EA"=3E=
<strong=3ETel:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"35"=3E&nbsp;11-23641854</td=3E=

                  </tr=3E
                  <tr bgcolor=3D"#FAF8F4" =3E
                      <td width=3D"25%" height=3D"35" bgcolor=3D"#FAF8F4"=3E=
<strong =3EFax:</strong=3E</td=3E
                      <td width=3D"75%" height=3D"35"=3E&nbsp;11-23641225</t=
d=3E
                  </tr=3E
                  <tr bgcolor=3D"#F7F2EA"=3E
                      <td width=3D"25%" height=3D"36"=3E<strong=3EProducts C=
ategory:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"36" bgcolor=3D"#F7F2EA"=3E&n=
bsp;=B5=E7=B6=AF=B9=A4=BE=DF</td=3E
                  </tr=3E
                  <tr bgcolor=3D"#FAF8F4"=3E
                      <td width=3D"25%" height=3D"52"=3E<strong=3ESubject:</=
strong=3E</td=3E
                      <td width=3D"75%" height=3D"52" bgcolor=3D"#FAF8F4"=3E=
&nbsp;looking&nbsp;for&nbsp;armatures&nbsp;and&nbsp;stamping&laminations</td=
=3E
                  </tr=3E
                  <tr bgcolor=3D"#F7F2EA"=3E
                      <td width=3D"25%" height=3D"156"=3E<strong=3EDescripti=
on:</strong=3E</td=3E
                    <td width=3D"75%" height=3D"156" valign=3D"top" bgcolor=3D=
"#F7F2EA"=3E&nbsp;armatures for hitachi,black&dacker,boach power tools=2Esta=
mping for armatures=2E5-10 containors in month=2E</td=3E
                  </tr=3E
                  <tr bgcolor=3D"#FAF8F4"=3E
                      <td width=3D"25%" height=3D"36"=3E<strong=3EPicture:</=
strong=3E</td=3E
                      <td width=3D"75%" height=3D"36" bgcolor=3D"#FAF8F4"=3E=
&nbsp;=C3=BB=D3=D0=B8=BD=B4=F8=B2=FA=C6=B7=CD=BC=C6=AC=A3=A1</td=3E
                  </tr=3E
                </table=3E
                </center=3E
            </div=3E
              <p =3E &nbsp;&nbsp; =C8=F4=C4=FA=D3=D0=C8=CE=BA=CE=D2=C9=CE=CA=
=A3=AC=C7=EB=CB=E6=CA=B1=D3=EB=CE=D2=C3=C7=C1=AA=CF=B5=A1=A3=D7=C9=D1=AF=B5=E7=
=BB=B0=A3=BA020-26081115<br=3E     
&nbsp;&nbsp; =B7=C7=B3=A3=B8=D0=D0=BB=C4=FA=B6=D4=D6=D0=B9=FA=B3=F6=BF=DA=C9=
=CC=C6=B7=BD=BB=D2=D7=BB=E1=CD=F8=D5=BE=B5=C4=D6=A7=B3=D6=A3=A1&nbsp;</p=3E =
    
              <p align=3D"right" =3E &nbsp;&nbsp;<strong=3E =D6=D0=B9=FA=B3=F6=
=BF=DA=C9=CC=C6=B7=BD=BB=D2=D7=BB=E1=CD=F8=D5=BE</strong=3E<br=3E
&nbsp;&nbsp; E-MAIL:<a href=3D"mailto:E-MAIL:member@icecf=2Ecom"=3Emember@ic=
ecf=2Ecom<br=3E     
        </a=3E&nbsp;&nbsp; =CD=F8=D6=B7:<a href=3D"http://www=2Ecantonfair=2E=
org=2Ecn"=3Ehttp://www=2Ecantonfair=2Eorg=2Ecn</span=3E</a=3E</p=3E</td=3E  =
   
        </tr=3E
      </table=3E</td=3E
</tr=3E
</table=3E</body=3E</html=3E

6 个解决方案

#1


up

#2


高手帮忙解决一下

#3


帮顶!

#4


up

#5


邮件应该是Base64String吧,这样

byte[] mailMsg = Convert.FromBase64String(your_Mail_Html);
string decodedMail = System.Text.Encoding.Default.GetString(mailMsg);

试试看

#6


不行呀
查理一下资料,好像是 Quoted-Printable编码
不过汉字解码有问题,会能提供代码

#1


up

#2


高手帮忙解决一下

#3


帮顶!

#4


up

#5


邮件应该是Base64String吧,这样

byte[] mailMsg = Convert.FromBase64String(your_Mail_Html);
string decodedMail = System.Text.Encoding.Default.GetString(mailMsg);

试试看

#6


不行呀
查理一下资料,好像是 Quoted-Printable编码
不过汉字解码有问题,会能提供代码