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

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

问题描述

我正在尝试获取一个mailto链接,该链接会打开一个新的外观电子邮件窗口,并从字段中修改(即使用辅助帐户)。这是可能的吗?

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.

您的选项几乎局限于


  • 主题

  • 正文

  • cc

  • bcc

  • subject
  • body
  • cc
  • bcc

即使客户端支持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()函数,它允许您设置一个自定义的From地址(并修改其他头文件)。

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).

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

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