Gmail Web-link - MailTo:

I had a little trouble finding additional details on how to populate HTML links to prefill GMail so I thought I should post it here for later.


Standard Mail To for local mail clients

Standard HTML MailTo:
<a href="mailto:someone@example.com?subject=Populate%20Subject&body=Please %20fill%20in%20your%20email%20body%20here&bcc=blind-carbon-copy@example.com"><button type="button">Send Email</button></a>


Google (GMail)

This example will populate the email as shown above:
<a href="https://mail.google.com/mail/?view=cm&fs=1&to=recipient@example.com&su=Populate%20Subject&body=Please %20fill%20in%20your%20email%20body%20here&bcc=blind-carbon-copy@example.com"><button type="button">Send Email</button></a>

As you can see there's not that much difference apart from "subject" shortening to "su" and the initial URL format prior to the separator.

Comments

Popular posts from this blog

Reclaim Your Peace of Mind: A Fun Guide to Protecting Your Digital Life

Australia's New IoT Standards & Security Labelling Scheme

The Alarming Cyber Security Gap: Why Australian SMBs Can't Afford to Wait