email-gateway

Internal email-sending API. Admin UI coming in phase 2.

POST /api/send

curl -X POST https://mail.emat.tw/api/send \
  -H "Authorization: Bearer emgw_..." \
  -H "Content-Type: application/json" \
  -d '{
    "from":"orders@chaoyimian.com",
    "to":"customer@example.com",
    "subject":"訂單成立",
    "html":"<p>謝謝!</p>"
  }'