【发布时间】:2014-05-14 08:44:12
【问题描述】:
根据this link 提供的垃圾邮件测试——自动的“感谢您注册”电子邮件将进入垃圾邮件文件夹,因为:
SPAM: BODY: Message is 10% to 20% HTML obfuscation (-32)
但是,我找不到任何可以解释这意味着什么的东西 -
我正在使用 SwiftMailer,这是我用来设置标题/添加 HTML 部分的相关代码:
[...] $body_txt = strip_tags($body); $message = Swift_Message::newInstance();
$typeone = $message -> getHeaders() -> get('MIME-Version');
$typeone -> setValue('1.0');
$typetwo = $message -> getHeaders() -> get('Content-Type');
$typetwo -> setValue('text/html');
$typetwo -> setParameter('charset', 'utf-8');
$message -> setSubject($subject)
-> setFrom(array("courier@".TRIMMED_DOMAIN => HUMAN_READABLE_URL))
-> setTo($to)
-> setBody($body_txt)
-> addPart($body, 'text/html');
$transport = Swift_SmtpTransport::newInstance(TRIMMED_URL, 25)
-> setUsername("courier@".TRIMMMED_URL)
-> setPassword(MAILER_PASSWORD);
$mailer = Swift_Mailer::newInstance($transport);
$result = $mailer -> send($message);
还有电子邮件本身,省略了很多文本: (也许我们使用了太多的 HTML?)
<!doctype html>
<html>
<head>
<title>Thank you for Joining [the website]</title>
</head>
<body>
<div>
<h1> Welcome!</h1>
<p>
Thank you for joining [our] community.
</p>
<h2>%s</h2><!-- this gets run through sprintf() and ultimately winds up being an <a> -->
%s
<p>
Our goal is to connect you [ blah, blah, blah ]
</p>
<ul>
<li>
[each of these contains a <strong> tag]
</li>
<li>[text omitted..]
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
<p>
If you have any questions, comments, concerns, or suggestions,
feel free to send us a message on our Contact Page.
We sincerely appreciate your feedback.
Constructive input from our community members helps us continually improve the [ ] experience.
Thank you again for joining [our] community.
</p>
<p>
Sincerely,
</p>
<p>
<em>The [...] Team.</em>
</p>
</div>
</body>
</html>
因此,如果有人可以就触发此HTML obfuscation 标志的原因提供任何见解,我将不胜感激。
编辑:
另外,我忘了提到查看电子邮件源会显示一堆=09:
=09=09=09=09We sincerely ap=
preciate your feedback.
=09=09=09=09Constructive input from our commun=
ity members helps us continually improve the[]experience.=
【问题讨论】:
-
必须查看完整的实际电子邮件
-
呃,差不多就是这样了……我认为内容与“HTML 混淆”的标志无关 - 但是,我会将更多原始文本放回那里...虽然,我认为唯一的关键字是“免费”
-
我打电话给 B.S 在那个检查器上,它过于敏感,所以他们可以卖掉他们的废话
-
请记住,没有一个垃圾邮件检测程序,每个邮件服务器都有不同的配置。
-
嗯,是的,但那是我可以开始的最佳位置。虽然我认为我们已经按照“非垃圾邮件”的最佳标准制定了这个 - 看起来有点绝望。
标签: php html-email swiftmailer email-spam