fetch usage
Input:
Output:
await fetch('notymail.yourdomain.your_tld/api/email', {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
to: "test@1.1.1.1",
subject: "Hello world!"
})
})await fetch('notymail.yourdomain.your_tld/api/email', {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
to: "test@1.1.1.1",
subject: "Hello world!"
})
})