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

后端 未结 8 2307
暖寄归人
暖寄归人 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:31

    Try this: mailto:%22John%20Wayne%22%3cjw@email.com%3e?subject..

    Wrap the name in %22 and the email has %3c before it and %3e after it and %20 for spaces

    That will output: "John Wayne"

    Full list of URL Encoding here: http://www.w3schools.com/tags/ref_urlencode.asp

提交回复
热议问题