Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 发送格式化的电子邮件_Html_Css_Sendmail - Fatal编程技术网

Html 发送格式化的电子邮件

Html 发送格式化的电子邮件,html,css,sendmail,Html,Css,Sendmail,我想就某些事件向我的用户发送电子邮件, 我想把电子邮件格式化。 我的意思是看起来像一个网页。 一些格式工作起来像字体、粗体、, 但其他像div背景色、字段集等都不是。 如何发送它们 <table><tr><td> tags 当我们收到收件箱中的促销邮件时并不是所有支持的邮件。为了安全起见,您应该对表和内联样式进行所有操作。下面列出了各种邮件客户端支持和不支持的内容: <table><tr><td>

我想就某些事件向我的用户发送电子邮件, 我想把电子邮件格式化。 我的意思是看起来像一个网页。 一些格式工作起来像字体、粗体、, 但其他像div背景色、字段集等都不是。 如何发送它们

       <table><tr><td> tags

当我们收到收件箱中的促销邮件时

并不是所有支持的邮件。为了安全起见,您应该对表和内联样式进行所有操作。下面列出了各种邮件客户端支持和不支持的内容:

       <table><tr><td> tags

您也可以尝试从HTML重置模板开始,例如:这将解决一些问题(当然不会添加功能)。

不要使用div标记,只使用

       <table><tr><td> tags
标签
比如说

       <table><tr><td> tags
     <table>
           <tr>
            <td style=" background-color:#FF00FF; ">do something </td>
            </tr>
      </table> 

做点什么
编辑

       <table><tr><td> tags
         <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Your Title</title>

        </style>
        </head>

        <body>
        <table>
         <tr>
          <td style="background:url(test.png); width:200px; height:200px;">do something</td>
          </tr>
        </table>
        </body>
        </html>

你的头衔
做点什么
一般情况下- 内联CSS适用于大多数电子邮件工具(Outlook、Gmail等) 避免使用样式标记。 在站点上存储IMGes并使用其完整路径

       <table><tr><td> tags
更多提示-

       <table><tr><td> tags

有关更多提示,您需要展示您的尝试。

向我们展示代码您做了什么?我有一个电子邮件标题,其中我输入了一些随机数据。我试过这种。但是没有出现。表格可见,但背景色不可见。。。。。Personalia:Name:
Email:
出生日期:我放了这个,看起来好像没有空格。嗯,好的,我会记住的。但是如果我删除表单仍然是一样的。你好,扎德,现在检查我的回答我如何指定css?就像刚才提到的?不在标签中?好的。。谢谢,如果我有任何问题,我会尝试回来。请记住,
在所有邮件客户端中都不受支持。我还是说内联样式(
)是你最安全的选择。好吧!!我将使用内联而不是外部或内部
       <table><tr><td> tags