Posting data from articulate to web page
Jan 18, 2016
ToEmailAddress = 'xyz@gmail.com';
Subject = "Testing";
CCTo = '1@gmail.com';
BCCTo = '1@gmail.com'
Body = "Testing body";
$.ajax({
url: 'http://apilink/User/SendEmail?ToEmailAddress=' + ToEmailAddress + '&Subject=' + Subject + '&CCTo=' + CCTo + '&BCCTo=' + BCCTo,
contentType: "application/json",
type: "POST",
data: Body,
crossDomain: true,
dataType: 'json',
success: function (data) {
if (data.Status != null) {
var Status = String(data.Status).toUpperCase();
if (Status == "0") {
alert(data.Message);
}
}
},
error: function (data) {
console.log(data);
return;
}
});
}
Can anybody help me on same plz? I am not able to post the data to email. I am executing this trigger on click as Execute JavaScript.
2 Replies
Hi Ravindra,
We're unable to assist with Javascript, so hopefully someone in the community is able to assist here, but you'll want to look at the Javascript best practices detailed here as well.
Thanks Ashley.
This discussion is closed. You can start a new discussion or contact Articulate Support.