---
id: "mailto_uri"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["internet", "pii"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/mailto_uri"
---

# Mailto URI (`mailto_uri`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

URI of the mailto: scheme (RFC 6068) that opens a new email message: one or more email addresses separated by commas, optionally followed by ? and header fields such as subject, cc or body. Web pages use it in mailto: links, and Wikidata stores email addresses (property P968) in this form. Spaces and other special characters in the header values are percent-encoded.

- Parent datatype: `uri`
- Personal data (PII): yes
- Categories: Internet (internet), Personally identifiable information (pii)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[Mm][Aa][Ii][Ll][Tt][Oo]:(?:[^\s?,@]+@[^\s?,@]+(?:,[^\s?,@]+@[^\s?,@]+)*(?:\?\S*)?|\?\S+)$
```

## Examples

- `mailto:chris@example.com` — Example of RFC 6068, section 6.1
- `mailto:infobot@example.com?subject=current-issue` — Example of RFC 6068 with a subject
- `mailto:joe@example.com?cc=bob@example.com&body=hello` — Example of RFC 6068 with cc and body
- `chris@example.com` (invalid example) — An email address without the mailto: scheme
- `mailto:chris.example.com` (invalid example) — No @ in the address

## Translations

- ru: URI mailto:: URI схемы mailto: с одним или несколькими адресами электронной почты и необязательными полями письма (RFC 6068).

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Mailto>
- doc: <https://www.rfc-editor.org/rfc/rfc6068>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/mailto_uri.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/mailto_uri.yaml>
