以HTML格式发送电子邮件
我想将简单的html代码发送给电子邮件,但在Outlook中,它以api代码的形式出现,而不是图像和文本样式。以HTML格式发送电子邮件
我是否应该包含更多的代码,以便Outlook将它识别为电子邮件,并且不会将该消息显示为html代码?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Dragooon</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#e2e3e7" style="font-family:Arial, Helvetica, sans-serif;">
<table id="Table_01" width="602" align="center" height="3401" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="10">
<img style="display:block" src="/images/Concept1_01.gif" width="1" height="394" alt=""></td>
<td colspan="47">
<img style="display:block" src="/images/Concept1_02.gif" width="600" height="56" alt=""></td>
<td>
<img style="display:block" src="/images/spacer.gif" width="1" height="56" alt=""></td>
</tr><td>
<img style="display:block" src="/images/spacer.gif" width="1" height="1" alt=""></td>
<td></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
我认为这可能让你在正确的轨道
是的,它与Outlook中的设置有关。或者尝试并取消选中:工具>选项>首选项>电子邮件选项>根据您的版本以纯文本格式阅读所有邮件。 – Dan675 2012-03-01 03:03:08
您的图像丢失的,因为你需要添加域在它的前面例如:
<td rowspan="10">
<img style="display:block" src="http://test.com/images/Concept1_01.gif" width="1" height="394" alt=""></td>
<td colspan="47">
<img style="display:block" src="http://test.com/images/Concept1_02.gif" width="600" height="56" alt=""></td>
<td>
<img style="display:block" src="http://test.com/images/spacer.gif" width="1" height="56" alt=""></td>
</tr><td>
<img style="display:block" src="http://test.com/images/spacer.gif" width="1" height="1" alt=""></td>
<td></td>
真的,好点。 – 2012-03-01 03:06:58
是的,我知道绝对链接,但我不知道文件将存储在哪里。无论如何谢谢 – 2012-03-01 03:43:50
你可以找到一个图像托管服务,如tinypic.com – Filype 2012-03-01 04:41:54
*您如何*发送电子邮件?这是一个编程问题还是关于使用Outlook的问题? – 2012-03-01 02:59:31
我希望你看到的代码,而不是呈现的HTML,如果你把它粘贴到gmail的组合框,这是一个WYSWYG编辑器。此外,您的图片来源应该是绝对位置,从您的域名开始。 – bdares 2012-03-01 03:02:10
需要示例。我想我知道,但不知道。 – Chloe 2012-03-01 03:02:45