Does the mailto: in anchor tag actually support attachments?

◇◆丶佛笑我妖孽 提交于 2019-12-20 01:35:13

问题


Is it possible to have attachments to be specified in the mailto: tag in HTML?

< a href="test@test.com?body=somebody&subject=someSubject">my link < /a>

if yes, how can I specify an attachment on:

  1. In the user's machine
  2. At the server

回答1:


Firstly, and it is important, mailto is not a "tag", it's a URL scheme. Secondly, no, the scheme only allows you to supply values for RFC 822 headers. There may be hacks supported by particular MUAs, but they won't be portable.




回答2:


I'm not sure about with mailto but the /a switch can be used with Outlook. A Help search in Outlook on "command-line switches" gives details. Naturally, since this is an Outlook-only switch and you need the path to Outlook there are limitations (as well as possibly limitations imposed by file access from the Web).



来源:https://stackoverflow.com/questions/4517046/does-the-mailto-in-anchor-tag-actually-support-attachments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!