We can send these notification using jquery. Below is the function for the same.
sendEmail: function (webUrl, from, to, cc, subject, body, success, failure) {
var urlTemplate = webUrl + "/_api/SP.Utilities.Utility.SendEmail";
$.ajax({
contentType: 'application/json',
url: urlTemplate,
type: "POST",
async: false,
data: JSON.stringify({
'properties': {
'__metadata': {
'type': 'SP.Utilities.EmailProperties'
},
'From': from,
'To': {
'results': to
},
'CC': {
'results': cc
},
'Body': body,
'Subject': subject,
'AdditionalHeaders': {
"__metadata": {
"type": "Collection(SP.KeyValue)"
},
"results": [
{
"__metadata": {
"type": 'SP.KeyValue'
},
"Key": "content-type",
"Value": 'text/html',
"ValueType": "Edm.String"
}
]
}
}
}),
headers: {
"Accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
},
success: function (data) {
success(data);
},
error: function (data) {
failure(data)
}
});
}
Where, webUrl is your site absolute url. from is an empty string. to,cc are array of email ids. subject,body are plain text/html string.