Resend
| Schemes | resend:// |
| Cargo feature | service-resend |
| Service | https://resend.com |
| Body formats | html (first is the default) |
| Attachments | yes |
| Title length | 250 characters |
| Body length | 32,768 characters |
| Body lines | unlimited |
| Request throttle | 200 ms between requests |
| Vendor URLs accepted | no |
URL formats
{schema}://{apikey}:{from_addr}
{schema}://{apikey}:{from_addr}/{targets}
{schema} is one of resend://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{apikey} | API Key | string | yes | secret; must match ^[A-Z0-9._-]+$ | |
{from_addr} | 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 |
|---|---|---|---|---|
apikey | API Key | string | ||
bcc | Blind Carbon Copy | list | separated by , or space | |
cc | Carbon Copy | list | separated by , or space | |
from | From Address | string | ||
name | From Name | string | ||
reply | Reply To | list | separated by , or space | |
to | Targets | list | sets {targets} |
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):
resend://abcd:user@example.com
resend://abcd:user@example.com/newuser1@example.com
resend://abcd:user@example.com/newuser9@example.com?format=text
resend://abcd:user@example.com/newuser2@example.com?name=Jessica
resend://abcd:user@example.com/newuser8@example.com?cc=l2g@nuxref.com
resend://abcd:user@example.com/newuser9@example.com?to=l2g@nuxref.com
resend://abcd:user@example.com/newuser7@example.com?bcc=l2g@nuxref.com
resend://abcd@newuser4%40example.com?name=Ralph&from=user2@example.ca
Rejected URLs:
resend://
resend://:@/
resend://abcd
resend://abcd@host
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'resend://abcd:user@example.com'
Notes
Resend (resend://): e-mail through the Resend API.
resend://{apikey}:{from_user}@{from_domain}[/{to_email}...] resend://{to_email_domain}?apikey=..&from=.. (the host becomes a target) ?name=..&cc=..&bcc=..&reply=..&to=..
Without targets the message goes to the sender.