Gmail 使用 html 和锚链接标记为垃圾邮件

发布于 2024-10-13 00:18:51 字数 1402 浏览 2 评论 0原文

首先,抱歉我的英语不好=(

我创建了一封HTML电子邮件,将其发送到yahoo,hotmail和gmail,第一个和第二个工作没问题,在收件箱前面收到,但是,gmail标记为垃圾邮件,但它会将其标记为跨度 only 我发送这些 HTML 代码:

                <tr>
                    <td colspan="2" style="padding:10px; border:2px solid #e3e3e3; text-align:center;"><a href="%%url%%" style="font-size:14px; text-decoration:none; color:#595959;"><span>Clique aqui e confira todas as informações e fotos dessa embarcação em nosso site - ID %%id%%</span></a></td>
                </tr>
                <tr>
                    <td colspan="2" style="padding:8px 10px; border-top:15px solid #fff; border-bottom:10px solid #fff; font-size:16px; text-transform:uppercase; color:#c90000; background:#e6e6e6;">Destaques YachtBrasil</td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="padding:3px; border:2px solid #e7e7e7;"><a href="http://www.yachtbrasil.com.br/"><span><img src="http://www.yachtbrasil.com.br/img/temp/YB-banner-email-site.jpg" alt="" style="display:block; border:none;" /></span></a></td>
                </tr>

发生这种情况是因为锚链接,如果我删除这些内容,它会工作并发送电子邮件,问题是,如何才能我使用 gmail 发送锚链接不被标记为垃圾邮件?我使用企业 googlemail 帐户发送此电子邮件。

的提示,我在此处和 google 上进行搜索,只是在锚链接之后找到了提示。

谢谢您

first of all, sorry for my bad English =(

I created an HTML email, send it to yahoo, hotmail and gmail, the first and the second work's ok, received in the front of the inbox, but, the gmail mark as spam, but it will mark it as span only with I send these HTML codes:

                <tr>
                    <td colspan="2" style="padding:10px; border:2px solid #e3e3e3; text-align:center;"><a href="%%url%%" style="font-size:14px; text-decoration:none; color:#595959;"><span>Clique aqui e confira todas as informações e fotos dessa embarcação em nosso site - ID %%id%%</span></a></td>
                </tr>
                <tr>
                    <td colspan="2" style="padding:8px 10px; border-top:15px solid #fff; border-bottom:10px solid #fff; font-size:16px; text-transform:uppercase; color:#c90000; background:#e6e6e6;">Destaques YachtBrasil</td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="padding:3px; border:2px solid #e7e7e7;"><a href="http://www.yachtbrasil.com.br/"><span><img src="http://www.yachtbrasil.com.br/img/temp/YB-banner-email-site.jpg" alt="" style="display:block; border:none;" /></span></a></td>
                </tr>

It happens because of the anchor links, if I remove the stuff, it will work and send the email, the question is, How can I send anchor links to not be marked as Spam using gmail? I'm sending this email using a enterprise googlemail account.

Thanks for the tips, I search here and at google and just find the tip after the anchor link.

Best regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

幽蝶幻影 2024-10-20 00:18:51

问题解决了!

如果您的电子邮件的所有标题均正确,但电子邮件仍无法到达收件箱目的地,则应显式键入一些锚定参数,例如 target=blankshape=rect< /代码>。

请参阅示例:

<a href="link.html" target="_blank" style="style....">Test</a>

应仅包含:

<a href="link.html" target="_blank" shape="rect">Test</a>

这将使链接重定向到收件箱而不是垃圾邮件文件夹!

感谢您对问题投反对票,下次请仔细阅读问题并尽力提供帮助!

The problem is fixed!

If you have an email with all the headers corrects, but the email still is not getting to inbox destination, you should explicitly type some anchor parameters, such as target=blank and shape=rect.

See the example:

<a href="link.html" target="_blank" style="style....">Test</a>

Should only contain:

<a href="link.html" target="_blank" shape="rect">Test</a>

This will let the links be redirected to the inbox and not the spam folder!

Thanks for the negative vote in the question, next time please read the question carefully and try to help!

烟酒忠诚 2024-10-20 00:18:51

不要通过电子邮件发送 HTML!

电子邮件并不意味着包含 HTML(尽管有一些约定)作为开发人员,我们应该避免这样做。始终应该并且仍然必须具有,因为 并非所有电子邮件客户端都支持标准

因此,我们至少应该提供链接、没有 a href 的完整 URL。不考虑电子邮件阅读器将能够阅读 HTML 格式的电子邮件。

话虽这么说...

HTML 在电子邮件中确实有其地位和用途

,因为,当然,纯文本太差了。我个人认为理想情况下所有电子邮件都应该拒绝 HTML 并只接受某种 MarkUp / MarkDown,但即使 Gmail 或一些大的电子邮件会这样做,这种情况也可能永远不会发生。

另外,今天(2013 年 8 月)我什至无法在 Gmail 上重现您的“问题”。使用简单的 HTML 电子邮件生成器,我可以安全地将 Test 发送到我的自己的 Gmail 收件箱。

在更新说明中,现在有一个非常相关的问题,其中充满了很好的答案。这里有 3 个可以帮助您的链接:

Don't send HTML through email!

E-mail is not meant to contain HTML (despite some conventions) and we, as developers, should avoid doing it. Always should have and still must have, because not all email clients support the standards.

So, we should give links, full URLs with no a href what so ever, at very least. Do not account the email reader will be able to read the HTML formatted email.

That being said...

HTML in email does have its place and usage

Because, granted, pure TEXT is way too poor. I personally think ideally all emails should refuse HTML and accept only some kind of MarkUp / MarkDown, but that may never happen even if Gmail or a few big ones would do it.

Also I couldn't even reproduce your "problem" on Gmail today (august 2013). Using a simple HTML email generator I could safely send <a href="link.html" target="_blank" style="style....">Test</a> into my own gmail inbox.

On an update note, there's now a much related question filled with good answers. Here are 3 links from there that can help you:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文