The “MailTo” …setting a proper name on the Recipient

后端 未结 8 2337
暖寄归人
暖寄归人 2020-12-30 20:02

How do I set a proper name for the recipient when in HTML I want to use the \"mailto\" tag.

Something like:

mailto:\"John Wayne(jw@email.com)?subject         


        
8条回答
  •  星月不相逢
    2020-12-30 20:17

    As mentioned in other answers, RFC 2368 allows the full mailbox syntax, which can be in name-addr (display-name plus angle-addr) form (RFC 5322). Unfortunately, it was obsoleted by RFC 6068, which only allows addr-spec form. However, both specifications allow omitting the URI authority (where the to-address usually goes) and specifying full header fields (including To:) as query parameters. Therefore, mailto:?to=John%20Wayne%20%3cjw@email.com%3e is valid.

提交回复
热议问题