关于这封电子邮件有什么问题?

时间:2012-11-14 15:03:16

标签: filter html-email spam

我正在构建一个电子邮件收据,该收据会在用户注册我们其中一个网站上即将发生的事件后返回给用户,但gmail会一直将其发送到垃圾邮件文件夹。我已将此问题与此html电子邮件的正文内容隔离开来:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Zzzzzzz Online PATHe Registration</title>
  </head>
  <body>

    <p>Dear <?php echo $data['f_name']; ?>,</p>

    <p>
    Thank you for registering for our upcoming open house.  We will be in
    touch shortly to arrange a meeting time on <?php echo $data['date'];?>.
    </p>

    <p>
    The open house will be given at our Zzzzzzz Avenue Campus located at 
    175 Zzzzzzz Ave, Zzzzzzz AL.
    Look up directions on <a href="<?php echo $gmaps;?>" target="_blank">
    Google Maps</a> or <a href="<?php echo $mapq;?>" target="_blank">Mapquest</a>.
    </p>

    <p>We look forward to meeting you,</p>

    <p>
    <a href="http://online.zzzzzzz.edu">Zzzzzzz College Online</a><br/>
    <a href="mailto:info@zzzzzzz.edu">info@zzzzzzz.edu</a><br/>
    (877)772-2265
    </p>

  </body>
</html>

我尝试过这些事情:

  • 带有完全验证的文档类型的Html
  • 替换了带有全长网址的地图网站的缩短网址
  • 尝试没有任何网址的电子邮件

所以我能想到的就是使用的语言,但这是一个非常有效的回应。填写此表单的用户要求学院与他们联系,以便为他们选择的日期设置会议。我在这里想念的是什么?

编辑:以下内容通过垃圾邮件测试就好了。具有讽刺意味的是,我们从这开始,但重写了它,因为它太通用了,并没有给用户提供有关开放日的位置的可操作信息:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Zzzzzz Online Open House Registration</title>
  </head>
  <body>

        <p>Dear Micah,</p>

        <p>Thank you for registering for our upcoming open house. We will be in touch
        shortly to arrange a time and to answer any questions you may have.</p>

        <p>For directions and more information, please visit out open house page at
        http://online.zzzzzzz.edu/open-house. In the meantime, if you have any
        questions or concerns that come up between now and the open house please feel
        free to contact us.</p>

        <p>We look forward to meeting you,</p>

        <p>Zzzzzz College Online</p>

  </body>
</html>

1 个答案:

答案 0 :(得分:1)

我不是这个领域的专家,但是Google快速搜索您收到的错误说明您应该同时包含text / html MIME类型和text / plain MIME类型,因为普通的电子邮件将包含两者都有,而SPAM通常只包含text / html版本。