Does the mailto: in anchor tag actually support attachments?

后端 未结 2 1966
余生分开走
余生分开走 2021-01-19 18:23

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>

2条回答
  •  鱼传尺愫
    2021-01-19 19:04

    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.

提交回复
热议问题