SMTP · Example Payload

Smtp Message Example

A complete RFC 5322 email message structure with MIME multipart body and attachment

SMTPEmailInternet StandardsIETFMessagingProtocolsRFC 5321

Smtp Message Example is an example object payload from SMTP, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionstandardmessagerawHeaders

Example Payload

smtp-message-example.json Raw ↑
{
  "description": "A complete RFC 5322 email message structure with MIME multipart body and attachment",
  "standard": "RFC 5322",
  "message": {
    "from": "alice@sender.com",
    "to": ["bob@example.com", "charlie@example.com"],
    "cc": "diana@example.com",
    "subject": "Q2 Report - Attached",
    "date": "2026-05-02T10:00:00Z",
    "messageId": "<20260502100000.abc123@sender.com>",
    "headers": {
      "MIME-Version": "1.0",
      "Content-Type": "multipart/mixed; boundary=\"BOUNDARY_ABC123\"",
      "X-Mailer": "ExampleMailer 1.0"
    },
    "body": {
      "mimeType": "multipart/mixed",
      "text": "Please find the Q2 report attached.\n\nBest regards,\nAlice",
      "html": "<p>Please find the Q2 report attached.</p><p>Best regards,<br>Alice</p>"
    },
    "attachments": [
      {
        "filename": "q2-report-2026.pdf",
        "contentType": "application/pdf",
        "disposition": "attachment",
        "size": 204800
      }
    ]
  },
  "rawHeaders": "From: Alice Smith <alice@sender.com>\r\nTo: Bob Jones <bob@example.com>, Charlie Brown <charlie@example.com>\r\nCc: Diana Prince <diana@example.com>\r\nSubject: Q2 Report - Attached\r\nDate: Fri, 02 May 2026 10:00:00 +0000\r\nMessage-ID: <20260502100000.abc123@sender.com>\r\nMIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\"BOUNDARY_ABC123\""
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/smtp-message-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.