Email
Research
Email engineering guide

Sending email on behalf of an authorized user

User-context sending is valuable only when the connected identity, allowed From address, consent, review policy, and submission result are visible and auditable.

Research surface only. This guide documents architecture and evaluation criteria; it does not describe a released DewEngine connector.
01
Authorization

Act within a real connected mailbox

Obtain the provider's send permission for the user or an approved enterprise access model. The sender must be the mailbox or an alias the provider permits; an API must not turn a supplied From string into impersonation.

02
Composition

Build a complete Internet message

Validate recipients, subject, text and HTML alternatives, attachments, and reply headers. Respect provider size limits and encode MIME correctly before using Gmail, Graph, or SMTP submission.

  • Authorized From and Reply-To
  • To, Cc, and Bcc
  • Text/HTML alternatives
  • Attachment content and limits
03
Product control

Separate drafting, approval, and execution

Store who requested the send, which policy allowed it, the final content version, and whether a human approved it. An idempotency key must prevent queue retries from sending the same message twice.

04
Evidence

Do not overstate submission success

Return the provider's accepted message ID and timestamp. Mailbox APIs generally do not prove an open or final delivery at send time, so later engagement or delivery claims require separate, provider-supported evidence.

  • Provider acknowledgement
  • Sent-folder reconciliation
  • Bounce handling where observable
  • No invented open or click event
Questions

Before you build.

Can the application choose any From address?+

No. The provider and mailbox configuration determine valid sender identities and aliases. Reject any address the authenticated account cannot use.

Should AI-generated email be sent immediately?+

Default to a draft or explicit approval. Customers can define narrower automated cases, but the connector should preserve the decision and approval evidence for every send.

Can I use DewEngine's email connectors today?+

Not yet. Gmail, Microsoft Graph, and IMAP/SMTP connectors are planned. This guide documents the intended architecture and the provider requirements a production release must satisfy.

Build with us

Does this match the workflow your users need?

DewEngine is in development. Real use cases decide what ships first.

Share your use case