email

v0.12.1
dev.wraps/email Checked 2 days ago Published 15 hours ago

Send email through your own Amazon SES account, and check domains, suppressions and sandbox status.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

send_email

Send a transactional email via your AWS SES account. Requires WRAPS_WRITE_ENABLED=true. The `from` address must be a verified SES identity (an address or domain) in this account and region. The `to` field accepts a single address or an array of addresses.

ParameterTypeDescription
subject *stringSubject line.
to *Recipient address, or an array of up to 1000 addresses.
fromstringSender address. Must be a verified SES identity in this account. Defaults to WRAPS_FROM_EMAIL.
htmlstringHTML body. Provide `html`, `text`, or both; at least one is required.
textstringPlain-text body. Provide `html`, `text`, or both; at least one is required.

list_recent_sends

List recently sent emails from your Wraps email history, newest first, at most `limit` messages. The timestamp shown is the send time and is stable across calls. Returns send status, subject, recipient, timestamp, and messageId for each send. Use the messageId with get_email_event_log for full delivery details. The `since` parameter accepts a full ISO 8601 datetime string (e.g., 2024-01-01T00:00:00Z).

ParameterTypeDescription
limitintegerMaximum number of messages to return, newest first (default 20).
sincestringOnly messages with activity at or after this ISO 8601 datetime.

get_email_event_log

Get the full delivery event log for a specific email by its messageId. Returns all SES events: Send, Delivery, Bounce, Complaint, Open, Click.

ParameterTypeDescription
messageId *stringSES message id, as returned by send_email or list_recent_sends.

verify_domain_status

Check the verification and DKIM status of a sending domain in your AWS SES account. Returns whether the domain is verified for sending and its DKIM configuration status.

ParameterTypeDescription
domain *stringDomain to check, e.g. example.com. SES identities are per-region.

list_suppressions

List addresses on your AWS SES account-level suppression list, or check a single address with `email`. SES silently drops mail to suppressed addresses, and sending to them damages your sending reputation, so check before sending to an address you have not sent to recently. To determine whether one specific address is suppressed, always pass `email` — that is an exact lookup. The listing is paginated and states explicitly when it is truncated; a truncated listing is never proof that an address is unsuppressed. Optionally filter the listing by reason (BOUNCE or COMPLAINT).

ParameterTypeDescription
emailstringCheck this ONE address against SES and report whether it is suppressed. Use this for any "is <address> suppressed?" question: it is an exact lookup. Do NOT answer that question from the listing instea…
limitintegerMaximum number of addresses to list (default 20, max 100). The response always states whether the listing was truncated.
reasonstringOnly list addresses suppressed for this reason.

get_setup_status

Check this AWS SES account's sandbox status and get a recommended next action for getting a first send out. Read-only — makes no changes to your AWS account.

estimate_cost

Estimate the monthly cost of sending email with Wraps + AWS: the flat Wraps plan fee and an itemized AWS bill (SES, EventBridge, SQS, Lambda, DynamoDB, dedicated IP, WAF). Use this instead of calculating by hand — the cost model has several interacting variables, including which SES pricing plan the AWS account is on. Requires no AWS credentials.

ParameterTypeDescription
emails *integerEmails sent per month
billingstringWraps billing interval
dedicatedIpbooleanInclude a dedicated sending IP
retentionstringEmail event history retention
sesPlanstringAWS SES pricing plan for this account and Region. AWS defaults new accounts to 'essentials' ($0.16/1K); 'alacarte' is $0.10/1K. Defaults to alacarte.
tierstringWraps plan. The fee is flat per plan and does not change with volume.
trackingbooleanWhether the event tracking pipeline is deployed (default true)