各位前辈,小弟希望通过ASP.Net2.0发送一封HTML格式的邮件,可是HTML内容比较多,总是报格式错误,请各位前辈多多帮助啊,小弟这里谢了先。 mailMsg.BodyFormat = MailFormat.Html;
mailMsg.Body = ""; 在mailMsg.Body中希望放如下代码,但总是报错,是不是引号或者一些符号格式不对?
应该是什么格式?<html>
<div align="left">
<table width="650px">
<tbody>
<tr>
<td style="height: 420px">
<p> <img src="\\dwdfkps\KPS\080_Reports\05_APJ\02_Reporting_Infrastructure\KPS_Banner.gif"> </p>
<p> <b> <span> <font face="Tahoma" size='5' color='#003560'>KPS APJ Reporting Services </font> </span> </b> </p>
<p> <font face="Tahoma" size='2'>Dear Colleagues, </font> </p>
<font face="Tahoma" size='2'>Thank you for using KPS APJ Reporting
Services.Your request has been forwarded to KPS APJ Reporting Service Team
for processing. <BR /> <BR />In case of any questions, please feel free to
contact us via <A href="http://10.128.150.80:1080/RSRP/">RSRP Platform </A>
(Contact Us). <BR /> <BR /> </font>
<p>
<font size="2" face="Tahoma"> <FONT face="Tahoma" size=2
__designer:dtid="9288674231451677">Thank you and best regards, </FONT>
</font>
</p>
<p>
<font face="Tahoma" size="2"> </font>
<b> <span style="font-size:8pt;font-family:Tahoma;color:navy">KPS APJ Reporting Services </span> </b> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:gray">Ramp-Up Knowledge Transfer </span> <br>
<b> <span style="font-size:8.0pt;font-family:Tahoma;color:gray">Knowledge Productization Services </span> </b> <br>
<a href="mailto:[email protected]">[email protected] </a> <br>
<b> <span style="font-size:8pt;font-family:Tahoma;color:gray">Visit our RKT standard
reporting: </span> </b> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:blue"> <a href="https://portal.wdf.sap.corp/irj/go/km/navigation/corporate_portal/WS%20Service%20%26%20Support/KPS/Workspace_public/Service%20Portfolio/RKT/Reporting/RKT%20Performance%20Statistics">
Monthly RKT Performance Details </a> </span> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:blue"> <a href="https://portal.wdf.sap.corp/irj/go/km/navigation/corporate_portal/WS%20Service%20%26%20Support/KPS/Workspace_public/Service%20Portfolio/RKT/Reporting/RKT%20Management%20Summary">
Management Summary </a> </span>
<table style="border-collapse: collapse" border="1" bordercolor="#666666">
<tr>
<td style="width:396px;background:#666666;height:19.5pt;border:0"> </td>
<td style="width:239px;background:#666666;height:19.5pt;border:0"> <span> </span> <a href="http://www.sap.com/company/legal/copyright"> <span> <font size='2' face="Tahoma" color="#FFFFFF">Copyright/Trade </font> </span> </a> <span> <font face="Tahoma"> </font> </span> <a href="http://www.sap.com/company/legal/privacy.asp"> <span> <font size='2' face="Tahoma" color=#FFFFFF>Privacy </font> </span> </a> </td>
</tr>
</table>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</html>
mailMsg.Body = ""; 在mailMsg.Body中希望放如下代码,但总是报错,是不是引号或者一些符号格式不对?
应该是什么格式?<html>
<div align="left">
<table width="650px">
<tbody>
<tr>
<td style="height: 420px">
<p> <img src="\\dwdfkps\KPS\080_Reports\05_APJ\02_Reporting_Infrastructure\KPS_Banner.gif"> </p>
<p> <b> <span> <font face="Tahoma" size='5' color='#003560'>KPS APJ Reporting Services </font> </span> </b> </p>
<p> <font face="Tahoma" size='2'>Dear Colleagues, </font> </p>
<font face="Tahoma" size='2'>Thank you for using KPS APJ Reporting
Services.Your request has been forwarded to KPS APJ Reporting Service Team
for processing. <BR /> <BR />In case of any questions, please feel free to
contact us via <A href="http://10.128.150.80:1080/RSRP/">RSRP Platform </A>
(Contact Us). <BR /> <BR /> </font>
<p>
<font size="2" face="Tahoma"> <FONT face="Tahoma" size=2
__designer:dtid="9288674231451677">Thank you and best regards, </FONT>
</font>
</p>
<p>
<font face="Tahoma" size="2"> </font>
<b> <span style="font-size:8pt;font-family:Tahoma;color:navy">KPS APJ Reporting Services </span> </b> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:gray">Ramp-Up Knowledge Transfer </span> <br>
<b> <span style="font-size:8.0pt;font-family:Tahoma;color:gray">Knowledge Productization Services </span> </b> <br>
<a href="mailto:[email protected]">[email protected] </a> <br>
<b> <span style="font-size:8pt;font-family:Tahoma;color:gray">Visit our RKT standard
reporting: </span> </b> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:blue"> <a href="https://portal.wdf.sap.corp/irj/go/km/navigation/corporate_portal/WS%20Service%20%26%20Support/KPS/Workspace_public/Service%20Portfolio/RKT/Reporting/RKT%20Performance%20Statistics">
Monthly RKT Performance Details </a> </span> <br>
<span style="font-size:8.0pt;font-family:Tahoma;color:blue"> <a href="https://portal.wdf.sap.corp/irj/go/km/navigation/corporate_portal/WS%20Service%20%26%20Support/KPS/Workspace_public/Service%20Portfolio/RKT/Reporting/RKT%20Management%20Summary">
Management Summary </a> </span>
<table style="border-collapse: collapse" border="1" bordercolor="#666666">
<tr>
<td style="width:396px;background:#666666;height:19.5pt;border:0"> </td>
<td style="width:239px;background:#666666;height:19.5pt;border:0"> <span> </span> <a href="http://www.sap.com/company/legal/copyright"> <span> <font size='2' face="Tahoma" color="#FFFFFF">Copyright/Trade </font> </span> </a> <span> <font face="Tahoma"> </font> </span> <a href="http://www.sap.com/company/legal/privacy.asp"> <span> <font size='2' face="Tahoma" color=#FFFFFF>Privacy </font> </span> </a> </td>
</tr>
</table>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</html>
解决方案 »
- GridView在运行后不显示数据(C#+ASP.NET)
- asp.net 包含多个aspx问题(c#),急
- 变量+1用c#怎么写啊,有求各位!
- WEBFORM 调试时正常,但是通过IIS运行时正确是怎么回事?
- 救命啊,关于VS2005模板列使用radiobutton,实现单选以及取出该列,搞了两天了,不行啊。
- 数据访问层返回DataReader问题
- [100分求教] ASP.Net(VB.net)连接Oracle该选用何种数据源提供者(Provider)?
- 请问:如何将ASP.NET的超链接功能加到EXCEL的CELL中?急急急。。。。
- 请教datagrid超级联接列的问题!
- 急啊,装了windows 2000 server,.net 2002,可创建了asp.net应用程序。。。
- 点浏览器后退按钮,为什么会网页过期呢?
- web.config设置问题
<html>
<div align=""left"">
";