Ajax Request Example
In the archive that you received you can find a folder with name example, there you can find a test file using the following Ajax request:
$.ajax({
type: 'GET',
url: 'http://example.local/email/email_sender',// Read the documentation firstly, and after that replace with your URL
data: $(form).serialize(),
datatype: "application/json; charset=utf-8",
success: function (data, status) {
console.log(data);
if(status == 'success'){
alert("E-mail was send with success!");
}
},
error: function (data) {
console.log('Error: ');
console.log(data);
}
})