Open Gmail on mailto: action

Viewed 74964

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.example?

6 Answers
<a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=someone@example.com" target="_blank">Title</a>

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.example&bcc=someone.else@example.com&su=SUBJECT&body=BODY

Or:

<a href="https://mail.google.com/mail/?view=cm&fs=1&to=someone@example.com&cc=someone@ola.example&bcc=someone.else@example.com&su=SUBJECT&body=BODY" target="_blank">Mail Us</a>
Related