Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2019 09:44 AM
Thanks for the help with this!
Turns out - difference between https and http - working curl script...
curl "https://devxxxx.service-now.com/api/now/v1/email" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{
\"to\": [
\"gareth <gjones@ca.ibm.com>\"
],
\"subject\": \"Hello There\",
\"text\": \"Test Message\",
\"html\": \"<b>Test Message</b>\",
\"headers\": {
\"X-Custom\": \"header\"
}
}" \
--user 'admin':'admin'
with xxx replaced and password added.
thanks!