Skip to the page

rykloud mail send

Send one transactional email (a receipt, a sign-in link, an order update)

Send one transactional email: a message to one person because of something they did. The from address must be on one of your domains set up for sending. --category is one of receipt, order, account, security or notification; only the first four reach someone who unsubscribed. Give --text, --text-file or --html-file (or text and HTML); "-" reads the file from standard input. --idempotency-key makes a retry safe: the same key answers the first message and sends nothing.

A refused message exits 5 with the reason; it is listed in rykloud mail messages list.

Usage
rykloud mail send [flags]
Examples
rykloud mail send --from orders@northwind.example --to jamie@example.com \
  --subject "Your receipt for order 10482" --text-file receipt.txt --category receipt \
  --idempotency-key order-10482-receipt

Flags

--category
receipt, order, account, security or notification
--from-name
a display name for the sender
--from
the sender, on one of your domains
--html-file
read the HTML body from a file (- for standard input)
--idempotency-key
a key that makes a retry send nothing twice
--reply-to
where replies go
--subject
the subject
--text-file
read the plain text body from a file (- for standard input)
--text
the plain text body
--to
the one recipient

Every command also takes the global flags.