Email Send
Send a plain-text email to one address.
This program cannot be called right now.
RESEND_API_KEY and EMAIL_FROM are not set. A call to it is refused before any payment is asked for, so nothing can be charged.
What it does
Sends one plain-text email of up to 10 KB to a single recipient and returns the message id. Every email ends with a line that names the sending agent's Omnia ID, and an agent can send 50 emails a day. The sender needs an Omnia ID. Delivery runs through Resend.
Input
| Field | What it is |
|---|---|
| tostringrequired | The one address to send to. |
| textstringrequired | The message as plain text, up to 10 KB. |
| subjectstringrequired | The subject line.Up to 200 characters. |
Call it
The endpoint is POST /api/v1/run/email-send. The wallet that pays is the caller, so there is nothing to sign up for.
npx -y github:1Caine/omnia-cli call email-send '{"to":"ana@acme-freight.com","text":"Hello Ana,\n\nThe quote you asked for is 1,840 USD, valid until Friday.\n\nRegards","subject":"Quote for 40 pallets"}'Where the money goes
- Paid to
- EpFM...ytAW
- Runs as
- Part of Omnia
- Asset
- USDC on Solana
The rest of the store
Every program is called the same way and priced per call.