{"status": 200,"message": "Email has been sent to recipient successfully.","data": {"id": "YOUR_ID","token": "YOUR_TOKEN","sender": "Tagget","body": "Hello world","to": "email@gmail.com","subject": "Email message subject";"reply_to": "reply@gmail.com"}}
{"status": 400,"message": "Error sending SMS message to recipient.","data": null}
var data = JSON.stringify({"id": "YOUR_ID","token": "YOUR_TOKEN","sender": "Tagget","body": "Hello world","to": "example@gmail.com","subject": "Email message subject";"reply_to": "reply@gmail.com"});var xhr = new XMLHttpRequest();xhr.withCredentials = true;xhr.addEventListener("readystatechange", function () {if (this.readyState === 4) {console.log(this.responseText);}});xhr.open("POST", "https://api.tagget.io/engage/send_email");xhr.setRequestHeader("content-type", "application/json");xhr.setRequestHeader("cache-control", "no-cache");xhr.send(data);
import requestsurl = "https://api.tagget.io/engage/send_email"payload = "{\n\t\"id\":\"YOUR_ID\",\n\t\"token\":\"YOUR_TOKEN\",\n\t\"sender\":\"Tagget\",\n\t\"body\": \"Hello world\",\n\t\"to\": \"example@gmail.com\"\n}"headers = {'content-type': "application/json",'cache-control': "no-cache"}response = requests.request("POST", url, data=payload, headers=headers)print(response.text)