{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Order confirmation — Send Email (SMTP)",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Placed order",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "orderId": "A-1002",
          "to": "customer@example.test",
          "total": 249
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "mail",
      "type": "output.send-email",
      "label": "Send confirmation",
      "category": "output",
      "config": {
        "host": "127.0.0.1",
        "port": 3025,
        "secure": "none",
        "user": "",
        "password": "",
        "from": "orders@yourshop.test",
        "to": "customer@example.test",
        "cc": "",
        "bcc": "",
        "subject": "Order {{ $json.orderId }} confirmed",
        "bodyMode": "text",
        "body": "Thanks! Your order {{ $json.orderId }} for ${{ $json.total }} is confirmed.",
        "timeoutMs": 10000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Sent",
      "category": "utility",
      "config": {
        "message": "confirmation sent for {{ $json.orderId }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "mail",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "mail",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "A transactional order confirmation over plain SMTP. Pre-wired for a LOCAL GreenMail test server — run the docker one-liner in this description and Test sends for real; read it back with the IMAP demo in Files & Integrations. Point host/credentials at your real SMTP to go live."
  }
}