Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

E-Mail

Schemesmailto://, mailtos://
Cargo featureservice-email
Body formatshtml, text (first is the default)
Attachmentsyes
Title length250 characters
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{host}
{schema}://{host}:{port}
{schema}://{host}:{port}/{targets}
{schema}://{host}/{targets}
{schema}://{user}@{host}
{schema}://{user}@{host}/{targets}
{schema}://{user}@{host}:{port}
{schema}://{user}@{host}/{targets}
{schema}://{user}@{host}:{port}/{targets}
{schema}://{user}:{password}@{host}
{schema}://{user}:{password}@{host}/{targets}
{schema}://{user}:{password}@{host}:{port}
{schema}://{user}:{password}@{host}:{port}/{targets}

{schema} is one of mailto://, mailtos://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{host}Domainstringyes
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{target_email}Target Emailstringno
{targets}Targetslistnoany of target_email; separated by /
{user}User Namestringno

Query parameters

ParameterMeaningTypeDefaultNotes
bccBlind Carbon Copylistseparated by , or space
ccCarbon Copylistseparated by , or space
fromFrom Emailstring
inlineInline Attachmentsboolno
modeSecure Modechoicestarttls (usually; depends on the URL)one of starttls, ssl, insecure
nameFrom Namestring
pgpPGP Security Modechoiceno (usually; depends on the URL)one of no, sign, encrypt; sign: Ed25519 or RSA (2048 to 8192 bits) private key; encrypt: cv25519 or RSA public key; without the service-email-pgp feature a PGP mode fails with Unsupported
pgpprvPGP Private Key Pathstringsecret; path, file:// or http(s)://; default: the storage folder
pgppubPGP Public Key Pathstringsecret; path, file:// or http(s)://; default: the storage folder
replyReply Tolistseparated by , or space
smtpSMTP Serverstring
toTo Emailstring
wkdWeb Key Directoryboolno

Prefixed parameters:

  • +name=value: Email Header

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

mailto://localhost
mailto://user:pass@gmail.com
mailtos://user:pass123@outlook.com.au
mailtos://user:pass@nuxref.com:567/l2g@nuxref.com
mailto://user:pass@localhost/test@example.com/test2@/$@!/
mailtos://user:pass@nuxref.com?from=@
mailto://user:pass@fastmail.com?tz=UTC
mailto://user:pass@nuxref.com?mode=ssl

Rejected URLs:

mailto://
mailtos://
mailto://:@/
mailtos://:pass@nuxref.com:567

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'mailto://localhost'

Notes

E-Mail (mailto://, mailtos://): sends the notification as e-mail over SMTP.

SMTP with STARTTLS or implicit TLS, AUTH CRAM-MD5/PLAIN/LOGIN, the provider template table (Gmail, Outlook, Yahoo, …), To/Cc/Bcc/Reply-To, HTML + text multipart/alternative, attachments (inline with ?inline=yes) and ?+X-Header=value.

Differences with Apprise

  • ?pgp=sign (feature service-email-pgp) signs with Ed25519 keys (GnuPG’s encoding) and RSA keys of 2048 to 8192 bits, while Apprise also accepts DSA, ECDSA and smaller RSA keys: mercurio’s OpenPGP is its own, built on ring, and covers those two.
  • ?pgp=encrypt (and ?pgp=sign when the recipient’s key is at hand) encrypts to Curve25519 (cv25519) and RSA keys, without compression, while Apprise compresses the message (ZIP) and also encrypts to ECDH keys on the NIST, Brainpool and secp256k1 curves.
  • ?wkd=yes asks a recipient’s Web Key Directory (RFC 9080) only when no key is in ?pgppub= or the storage folder, as in Apprise, but asks both URLs at once, where Apprise tries the direct URL only after the openpgpkey. one fails; the openpgpkey. answer still wins.
  • When encryption needs a key pair and none exists (a message to oneself, or the Autocrypt header advertising ours), mercurio generates an Ed25519 key with a Curve25519 encryption subkey, while Apprise generates RSA 2048 keys; both write <local>-pub.asc and <local>-prv.asc to the storage folder (asset: pgp_autogen: no turns it off).
  • ?reply= with several targets raised on the second target in Apprise, while mercurio sends it.