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

后端 未结 8 2271
暖寄归人
暖寄归人 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:32
      <a href="mailto:lala lala2(astark1@unl.edu)?subject=MailTo Comments&cc=ASTARK1@UNL.EDU&bcc=id@internet.node">ffffffffd</a>
    

    Remember to use only one ? (question mark), when providing multiple entries beyond e-mail address

    0 讨论(0)
  • 2020-12-30 20:37

    Encode the uri and assign it to mailto.

    Also your email and display name need to be formed as either John Wayne <jw@email.com> or jw@email.com (John Wayne).

    Make sure you did encodeURI for these. Else it wont work properly in different mailclients.

    0 讨论(0)
提交回复
热议问题