是否可以修改“from"?mailto 链接中的字段? [英] Is it possible to modify "from" field in mailto link?

查看:45
本文介绍了是否可以修改“from"?mailto 链接中的字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取一个 mailto 链接,该链接将打开一个带有修改自字段的新 Outlook 电子邮件窗口(即按原样使用辅助帐户).这可能吗?

I'm trying to get a mailto link that would open a new outlook email window with a modified from field (i.e. to use a secondary account as it were). Is that possible?

推荐答案

没有.当然不是在大多数流行的邮件客户端中.

No. Certainly not in most of the popular mail clients.

我假设您想这样做只是为了节省您自己的邮件客户端的时间.我肯定会对试图更改我的发件人地址或回复地址的网站感到恼火,因此我希望我的邮件客户端忽略它.

I assume you are wanting to do this just to save time in your own mail client. I would certainly be annoyed with a website that tried to change my from or reply-to address, so I'd expect my mail client to ignore it.

MAILTO 旨在帮助发件人联系已在网站上列出的地址.因此,发件人希望网站规定的内容很少.如果网站所有者处理不当,即使是标准选项也会很烦人.

MAILTO is designed to facilitate a sender contacting an address that has been listed on a website. So there are very few things that the sender would expect to have dictated by the website. Even the standard options can be pretty annoying if handled badly by the website owner.

您的选择几乎仅限于

  • 主题
  • 身体
  • 抄送
  • 密送

即使客户端支持 From(我不知道有任何支持),他们也没有明显的方法来处理边缘情况,例如尚未在邮件客户端中配置的发件人地址.

Even if a client were to support From (and I am not aware of any that do), there is no obvious way for them to handle edge-case scenarios such as a from address that has not been configured in the mail client.

你需要这个做什么?也许您可以使用脚本来发送邮件并动态设置 From 标头.例如,PHP 有一个 mail() 函数,它允许您设置自定义发件人地址(并修改其他标题).

What do you need this for? Perhaps you can use a script to send mails and dynamically set the From header. For example, PHP has a mail() function which would allow you to set a custom From address (and modify other headers).

这篇关于是否可以修改“from"?mailto 链接中的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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