Open Gmail on mailto: action

前端 未结 6 2097
借酒劲吻你
借酒劲吻你 2020-12-05 06:58

How to force web-browser to navigate to Gmail and create (if logged in) new letter with filled in field \'To\' on click on mailto:SomeMail@blabla.com?

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 07:48

    To add Subject, Body, CC, and BCC, just add the parameters to the URL:

    • Carbon Copy (CC) is the parameter "cc"
    • Blind Carbon Copy (BCC) is the parameter "bcc"
    • Subject is the parameter "su"
    • Body is the parameter "body"

    Example:

    https://mail.google.com/mail/?view=cm&fs=1&to=someone@example.com&cc=someone@ola.com&bcc=someone.else@example.com&su=SUBJECT&body=BODY

    Or:

    Mail Us
    

提交回复
热议问题