Postmark
| Schemes | postmark:// |
| Cargo feature | service-postmark |
| Service | https://postmarkapp.com/ |
| Body formats | html (first is the default) |
| Attachments | yes |
| Title length | 250 characters |
| Body length | 32,768 characters |
| Body lines | unlimited |
| Request throttle | 1200 ms between requests |
| Vendor URLs accepted | no |
URL formats
{schema}://{apikey}:{from_email}
{schema}://{apikey}:{from_email}/{targets}
{schema} is one of postmark://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{apikey} | API Key | string | yes | secret | |
{from_email} | Source Email | yes | |||
{target_email} | Target Email | no | |||
{targets} | Targets | list | no | any of target_email; separated by / |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
bcc | Blind Carbon Copy | list | separated by , or space | |
cc | Carbon Copy | list | separated by , or space | |
name | From Name | string | ||
reply | Reply To Email | list | separated by , or space | |
to | Targets | list | sets {targets} | |
from | Source Email | sets {from_email} |
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):
postmark://abcd:user@example.com
postmark://abcd:user@example.com/newuser1@example.com
postmark://abcd:user@example.com/newuser2@example.com?name=John
postmark://abcd:user@example.com?format=text
postmark://abcd:user@example.com/newuser5@example.com?cc=cc@nuxref.com
postmark://abcd:user@example.com/newuser4@example.com?bcc=bcc@nuxref.com
postmark://abcd:user@example.com/newuser6@example.com?to=extra@nuxref.com
postmark://abcd:user@example.com/newuser3@example.com?reply=Rep<reply@example.com>
Rejected URLs:
postmark://
postmark://:@/
postmark://abcd
postmark://abcd@host
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'postmark://abcd:user@example.com'
Notes
Postmark (postmark://): e-mail through the Postmark API.
postmark://{apikey}:{from_user}@{from_domain}[/{to_email}...] postmark://{to_email_domain}?apikey=..&from=.. (the host becomes a target) ?name=..&cc=..&bcc=..&reply=..&to=..
Without targets the message goes to the sender.