使用< title>有什么意义吗?在HTML电子邮件中标记? [英] Is there any sense in using the <title> tag in HTML e-mail?

查看:74
本文介绍了使用< title>有什么意义吗?在HTML电子邮件中标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发送HTML电子邮件时,使用< title> 标签有什么意义?例如,在 PHP手册中,他们在其主要示例代码中使用了这样的标记.但是,我看不出为什么电子邮件客户端会使用此标题而不是电子邮件中的主题.是否有任何理由设置此标签?

When sending an HTML e-mail, is there any sense in using the <title> tag? In the PHP Manual, for instance, they use such a tag in their main sample code. However, I see no reason why an e-mail client would use this title and not the Subject from the e-mail. Is there any reason to set this tag?

推荐答案

在编写使用 sendmail()函数的PHP邮件列表管理器脚本时,我一直在自己研究这个问题.

I've been looking into this myself as I'm writing a PHP mailing list manager script that uses the sendmail() function.

该脚本允许管理员创建和发送多种形式的电子邮件(文本和html版本).

The script allows the admin to create and send multiform emails (both text and html versions).

经过大量测试,我发现某些电子邮件服务器似乎在标题标签(< title></title> )上出现问题.

After much testing I have found that some email servers appear to have issues with the title tag (<title></title>).

我创建了一封测试电子邮件,并将其发送到我的电子邮件地址中的5个,我的 @ blueyonder.co.uk 电子邮件未能到达,但其他4个都没有问题.

I created a test email and sent it to 5 of my email address, my @blueyonder.co.uk email failed to arrive but the 4 others had no problems.

经过淘汰之后,结果发现,当我删除电子邮件标签时, @ blueyonder.co.uk 邮件服务器不喜欢电子邮件html部分中的标题标签.没有问题.

After a process of elimination it turned out that the @blueyonder.co.uk mail servers did not like the title tags in the html part of the email message, when I removed the tag the email arrived no probs.

很奇怪!

这篇关于使用&lt; title&gt;有什么意义吗?在HTML电子邮件中标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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