Skip to main content

Amazon SES

Use Amazon SES Send Email with one saved customer IAM credential. Choose a published Orqio HTML template and a separate subject, or an existing SES template name and one JSON data object. Success returns messageId and means AWS accepted the request. It does not prove delivery.

Set up the AWS account​

  1. Select a supported commercial SES region. Verify the sender email address or domain in that region. For a domain, configure DKIM and publish the DNS records that AWS provides.
  2. Check the region's sandbox status and sending limits. In the sandbox, recipients must also be verified, except the SES mailbox simulator. Request production access for normal recipient sending. A higher quota or production access does not remove sender verification.
  3. Create a dedicated IAM user and API access key for this Orqio use. Do not use root keys or SMTP credentials. Orqio currently uses static IAM keys. AWS recommends delegated roles for third parties; role assumption and temporary-key refresh are outside this delivery.
  4. Attach the policy below after you replace the account, region, sender, template, and configuration-set values. Keep only the template and configuration-set resources that you use. Remove their entries for plain Orqio content with no default configuration set.
  5. Save an Amazon SES credential in the correct Orqio workspace. Select the explicit region and enter accessKeyId and secretAccessKey. Saving checks fields; it does not test a connection or prove that the keys can send from the selected sender.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "ses:SendEmail",
"Resource": [
"arn:aws:ses:eu-north-1:123456789012:identity/example.com",
"arn:aws:ses:eu-north-1:123456789012:template/welcome",
"arn:aws:ses:eu-north-1:123456789012:configuration-set/rendering-events"
],
"Condition": {
"StringEquals": { "ses:FromAddress": "sender@example.com" }
}
}]
}

The policy grants only ses:SendEmail. Orqio does not need account listing, template reads, or resource creation permissions. Configure templates, DKIM, notifications, and configuration sets with separate customer administration access. Use the verified email identity ARN instead of the domain identity ARN if you verified only an email address. The sender condition limits a verified domain credential to the intended sender.

Sources: SES IAM, SendEmail resources and conditions, DKIM, Regional scope, Sandbox and production access, AWS third-party roles.

Configure Send Email​

Select the saved credential. Enter to, optional cc/bcc, and fromEmail. Each recipient entry can contain comma-separated addresses. Groups remain separate. You must have at least one To recipient and at most 50 recipients in total, including duplicates. Use ASCII mailbox local parts and ASCII/Punycode domains. Names have a 256-byte UTF-8 limit. Optional replyToName needs a replyToEmail. Addresses, names, and subject cannot contain CR/LF.

Orqio template: Select a published HTML version and bind its variables. Enter a separate subject. The selected version stays pinned when another version is published. Subject is 1–8,192 UTF-8 bytes and rendered HTML is 1–524,288 UTF-8 bytes. Whitespace alone is empty. Normal resolvables and protected bindings use the standard worker path. Escaping stays enabled; raw HTML requires the template author's explicit raw binding.

SES template: Enter a name from the selected AWS account and region. ARN entry is not supported. Name is non-empty, has no control characters, and is at most 1,024 UTF-8 bytes. Replacement data is one JSON object, at most 262,144 UTF-8 bytes after serialization. Omission sends {}. AWS supplies the stored subject and HTML/text. Orqio does not fetch or render it. Changing a template in AWS can change later sends from the same workflow; its name is not a pinned version. AWS controls native rendered-message limits.

The editor clears inactive mode fields. Attachments, inline content, raw MIME, arbitrary headers, tags, template management, and configuration-set overrides are not available.

Native rendering failures​

SES can accept a request and later fail to render it. Before native-template sending, configure Rendering Failure events with SNS in your AWS account. Assign the event configuration set as the default for the verified sending identity, because this action does not select a configuration set. For domain verification, check the identity that the sending address uses. Verify the SNS subscription and monitor it with your own AWS tools. Orqio does not create these resources or consume their callbacks. A rendering failure is not a reason for an automatic Orqio resend.

Sources: Stored-template sending and rendering notifications, Default configuration sets, SES acceptance limits.

Investigate errors and reruns​

Local input errors use SES_INPUT_INVALID with acceptance: not_dispatched. Credential, workspace, Orqio template, protected-value, and worker failures use the standard workflow failure path. A missing native template returns SES_RESOURCE_MISSING after dispatch.

Service, response, and transport errors use acceptance: unknown. Error details contain a fixed category and optional HTTP status, without raw AWS error text or customer content. An invalid acceptance response returns SES_RESPONSE_INVALID. A caught transport failure or service 5xx returns SES_SEND_OUTCOME_UNKNOWN. These error-port results complete the node and do not themselves cause automatic retry. Check AWS evidence before you deliberately rerun; the first send may have been accepted.

The SDK makes one attempt. Existing workspace-controlled worker retries remain. An activity can send before it times out, crashes, or loses its completed result. The next attempt can send again. There is no dedupe or durable send ledger. Retry metrics show observed requests and attempts; they do not prove delivery or duplicate sends. Ordinary debug inputs remain inspectable, while sealed values appear as [protected]. Run Once uses debug; new-workspace normal runs use minimal.

Replace or revoke keys​

Before first workflow use, edit the saved credential if needed. After use, create a new credential, update the workflow's credential selection, and publish the new workflow version. Retire old use and revoke the old IAM key when appropriate. A saved used credential is permanently locked.

For a suspected key leak, stop affected workflow starts and retries and revoke the key in AWS. IAM changes take time to propagate. A successful IAM update response does not prove that sending has stopped. Check available AWS evidence and watch for later access. Already accepted email cannot be recalled, and a provider rollback cannot undo it.

Source: IAM eventual consistency.