Send mails using the REST API endpoint
https://shootmail.app/api/mail/schedule
header: { 'Authorization': 'shootmail-api-key', 'Content-Type': 'application/json' }
{ "provider":"resend", // postmark, zoho, sendgrid, SES "apiKey": "re_QMfxxxxxxxxxxxxxxxxxxxxxxxxxxx", "templateId":"gktffznidphwrqx", "subject":"Regarding your Shootmail subscription", "preHeader": "Lifetime Access to Notion-like email editor & templates - Shootmail", // optional "from":{ "name":"Shootmail", "email":"noreply@mail.example.app" }, "to":[ { "email":"abc@example.com" } ], "replyTo": "sps@example.com", // or ["sps@example.com", "sps1@example.com"] "data": { "name": "John" // custom variables - optional } }