防止电子邮件结尾崩溃 [英] Prevent end of email from being collapsed

查看:113
本文介绍了防止电子邮件结尾崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Flask-Mail发送事件的电子邮件通知,当前遇到一个问题,即如果同一主题的两封电子邮件以相同的内容结尾(这是一个相当小众的情况,但绝对有必要考虑一下)尽管如此,第二封电子邮件的结尾部分会被某些认为是签字或签名之类的邮件客户端(例如,gmail)折叠.我该如何预防?

I'm using Flask-Mail to send email notifications for events and currently I'm encountering a problem where if two emails of the same subject end with the same thing (which is a rather niche circumstance, but definitely necessary to consider nonetheless), the ending part of the second email will be collapsed by certain mail clients (gmail, for example) that think it's a sign-off or signature or whatever. How do I prevent this?

当前我正在做的是生成一个随机的字母序列,并将其放入<span style="display:none">...</span>并将其附加到电子邮件中,以便客户认为这是一个不同的页脚,但这确实很麻烦,我想知道是否有一种正确的方法.

Currently what I'm doing is generating a random sequence of letters and putting it in a <span style="display:none">...</span> and appending that to the email so the client thinks it's a different footer, but that feels really hacky and I want to know if there's a proper way to do it.

推荐答案

进行一些研究后,似乎gmail并没有提供关闭此选项的选项.关于该主题的所有文章都建议使页脚具有唯一性,这正是您所做的.

After doing some research, it does not seem as though gmail gives you an option to turn this off. All of the articles written on this topic suggest making your footer unique, which is exactly what you are doing.

此外,此选项意味着电子邮件的内容完全不会更改.这似乎是最好的解决方案.

Furthermore, this option means that the content of the email does not change at all. This seems to be the best solution.

这篇关于防止电子邮件结尾崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆