How to send an email
var url = contextPath+"/sendEmail?appId=XXX&applicationId=XXX";
var vo = new Object();
vo['from'] = 'x@y';
vo['to'] = 'z@t,';
vo['cc'] = '...';
vo['bcc'] = ...;
vo['message'] = 'abc';
vo['mimeType'] = 'text/html'; // "text/plain"
vo['returnReceipt'] = 'true';
var json = Ext.encode(vo);
var response = new SyncRequest().send(url,'POST',json,'application/json');
if (response!=null && response!='') {
risp = Ext.decode(response);
}Last updated