HTML Email Links.
Email links use the 'mailto:' protocol to automatically open the user's default email client with a pre-filled address.
The Essentials
Use 'mailto:address@example.com' inside the href attribute.
When clicked, it opens software like Outlook, Gmail, or Apple Mail.
You can pre-fill the subject line using '?subject=Hello'.
You can add a body message using '&body=Message'.
Spaces in subjects or bodies must be encoded as %20.
These links work on mobile devices to open the native mail app.
Professional Insights
Email Obfuscation
Multiple Recipients
User Experience Note
Subject and Body Limits
Critical Pitfalls
Forgetting the 'mailto:' prefix (e.g., href='info@site.com' instead of href='mailto:info@site.com').
Misspelling the email address.
Using spaces in the URL without encoding them (use %20 instead).
Expecting the email to be sent automatically—the user still has to click 'Send' in their app.