电子邮件以HTML格式发送

时间:2012-03-01 02:57:35

标签: html email

我想将简单的html代码发送到电子邮件,但在outlook中它作为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>

2 个答案:

答案 0 :(得分:1)

您的图片丢失了,因为您需要在其前面添加域名,例如:

    <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>

答案 1 :(得分:0)

我认为这可能会让你走上正轨

http://www.emailaddressmanager.com/tips/html-email.html