Online Email HTML Mailto Code Generator

The following code creates an email link - when users click on the link, browser open the default email client application
Properties

 

SEO, HTML and TEXT Online Tools List

Online Email HTML Mailto Code Generator | HTML Email Link

An HTML mailto code is used to create a clickable email link in an HTML web page. The mailto code uses the "mailto" URL scheme to launch the default email client and create a new email message.

Here is an example of a basic HTML mailto code:

<a href="mailto:[email protected]">Send an email</a>

In the example above, "[email protected]" is the email address that the email message will be sent to. The text "Send an email" will be displayed as the clickable link on the web page.

You can also include additional information in the mailto link, such as a subject line, cc and bcc recipients, and a message body:

<a href="mailto:[email protected]?subject=Subject Line&[email protected]&[email protected]&body=Message Body">Send an email</a>

In the example above, "Subject Line" is the subject of the email message, "[email protected]" and "[email protected]" are the cc and bcc recipients, and "Message Body" is the text that will appear in the body of the email message.

The mailto link is written like regular link with extra parameters inside the href attribute:

Default HTML Email Link

<a href="mailto:[email protected]">[email protected]</a>

Email HTML Code with Subject

<a href="mailto:[email protected]?subject=My Custom email subject">[email protected]</a>

Email HTML Code with Subject and Body

<a href="mailto:[email protected]?subject=My Custom email subject&body=Email HTML Code with Subject and Body">[email protected]</a>

How To Use This Online Email HTML Mailto Code Generator?

The Email Mailto HTML Code Generator we offer features a user-friendly interface that makes it easy for anyone to use, regardless of their level of expertise. Whether you're a seasoned professional or just starting out, you won't have to worry about complicated rules for viewing HTML online with this tool. The straightforward steps outlined below will help you view HTML using our service.

  1. Provide e-mail "To", "CC", "BCC", "Link Text", "Subject", "Body" for generate you HTML code.
  2. The next step is to click the "Generate Email HTML Link Code" button.
  3. As this button is pressed, the results are generated and displayed instantaneously.
  4. After you have generated the HTML code, you can click on "Copy" or select all converted text and press "Control-C" to copy, and then "Control-V" to paste it back into your document.
  5. Alternatively, you can download generated HTML code as a text file by simply clicking on the "Download" button

Useful Features of Our Online HTML Email Link Generator

The Online HTML Email Link Generator on our website comes equipped with exceptional features, making it the best online tool for generate HTML List codes. The most notable features of our online utility are listed below.

Free and Simple to Use

The use of this tool comes at no cost, and it's effortless to use. With the simple set of instructions provided, you'll be able to view and run codes easily.

Compatibility

This tool is a cloud-based utility and supported by all operating systems, including iOS, Android, Windows, and Mac OS, allowing you to access and use it for viewing HTML files from any device.

No Plugin Installation Needed

You can access this tool through the web browser of your device without having to install any plugins. This HTML viewer operates without the need for any plugins, making it convenient to use.

Speedy and Secure

The tool displays results on the user's screen in mere seconds, and it's a secure online utility that doesn't save any data entered or uploaded by users in its databases.

Accessible from Everywhere

You can access our tool from anywhere in the world as long as you have an internet connection. Simply connect your device to the internet, and you'll be able to use and access this code viewer.

Privacy Is Guaranteed

OnlineWebToolkit offers a variety of online tools, including an HTML Email Link Generator, and places a high priority on protecting the privacy of its users' data. Many people are concerned about the security of their confidential information when using online tools due to the increase in online scams. However, our website provides a secure tool that keeps your information safe from hackers and will not share it with any third parties. The HTML code you upload to our tool is stored only on your device (in the browser) during the formatting process. Once the results are generated and displayed, or when you refresh or close your browser, the data is deleted from our site.

A mailto link opens the visitor's own email client with the message already addressed - and, if you want, with the subject, body, cc and bcc filled in.

The anatomy of a mailto URI

The format is defined by RFC 6068. The address comes first, then an ordinary query string:

<a href="mailto:[email protected]?subject=Quote%20request&[email protected]&body=Hello%2C">Request a quote</a>

Every parameter after the ? is optional, and every value has to be percent-encoded - spaces become %20, line breaks become %0D%0A. Getting the encoding wrong is the usual reason a pre-filled body arrives truncated or mangled, which is exactly the fiddly part this generator handles for you.

Practical limits worth knowing

  • Length. There is no defined maximum, but mail clients and browsers impose their own, and some truncate around 2,000 characters. Keep pre-filled bodies short.
  • Rich text. There is none. A mailto body is plain text; HTML in it is delivered as literal characters.
  • Webmail. Whether a mailto link opens Gmail or a desktop client depends on the visitor's protocol handler settings, which you cannot control.
  • No mail client at all. On a machine with nothing configured, the link does nothing visible - which is why a mailto link should never be the only way to contact you.

Address harvesting, and what to do about it

An address in a mailto: href is plain text in your page source, and crawlers that harvest addresses for spam lists read page source. Obfuscation tricks - writing "at" instead of @, splitting the address across spans, encoding it in JavaScript - buy a little time and break accessibility and copy-paste in exchange.

The durable answers are structural: use a role address such as support@ rather than a person's, so the cost of it leaking is low; or use a contact form, which never exposes an address at all. If you do publish a mailto link, put it on one page rather than in a sitewide footer.

Frequently Asked Questions

Why does my pre-filled body arrive with %20 in it?

Because it was encoded twice. The value has to be percent-encoded exactly once; if your template encodes it and you paste an already-encoded string, the percent signs themselves get encoded. Generate the link once, from raw text.

Can I attach a file with a mailto link?

No. The attachment parameter was never standardised and no mainstream mail client supports it, for the obvious security reason that a web page should not be able to attach files from your disk.

Can I send to multiple recipients?

Yes - separate addresses with commas in the address portion, or use the cc and bcc parameters. Be aware that a long list of visible recipients in a to field is a privacy problem; use bcc.

More HTML tools

Every tool below runs in your browser, with nothing uploaded. The HTML tools hub also carries a full reference guide to HTML itself — elements, attributes, entities, semantics, forms and accessibility.