curl -X POST https://openmail.openproject.co.zw/r/[token] \
-H "Content-Type: application/json" \
-d '{"to":"user@example.com","subject":"Hi","type":"text","body":"Hello"}'
await fetch("https://openmail.openproject.co.zw/r/[token]", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ to: "user@example.com", subject: "Hi", type: "html", body: "<p>Hello</p>" })
});
import requests
requests.post("https://openmail.openproject.co.zw/r/[token]", json={
"to":"user@example.com","subject":"Hi","type":"text","body":"Hello"
})
payload := strings.NewReader(`{"to":"user@example.com","subject":"Hi","type":"text","body":"Hello"}`)
req, _ := http.NewRequest("POST", "https://openmail.openproject.co.zw/r/[token]", payload)