About mailto link generator
A mailto link opens the visitor's email app with the recipient, subject and message already filled in.
Parts of the link
- mailto:[email protected] sets the recipient.
- ?subject= sets the subject and &body= sets the message.
- &cc= and &bcc= add copies. Spaces and line breaks must be URL-encoded.
Spam note
Showing an email address in page code lets bots collect it. A contact form or a protected link reduces spam.
A worked example
The link mailto:[email protected]?subject=Order%20help&body=Hi%20team%2C%20my%20order%20number%20is opens a new email addressed to support, with the subject and the start of the message filled in. Add &cc= to copy someone else.
Tips
- Encode spaces as %20 and line breaks as %0A.
- Keep the body short, since some email apps limit link length.
- Display the address as text as well for people using web mail.
