Yes, it is possible.
You can for example rewrite the sendMsg function executed when you click on the button send.
Here is an example code :
Code:
function ZimletName() {
};
ZimletName.prototype = new ZmZimletBase();
ZimletName.prototype.constructor = ZimletName;
ZimletName.prototype.onShowView = function(viewId, isNewView) {
//Define the modified sendMsg method
if (viewId == ZmId.VIEW_COMPOSE){
this.defineSend();
}
};
ZimletName.prototype.defineSend = function() {
var controller = appCtxt.getCurrentController();
if(!controller._toolbar) {
controller._initializeToolBar();
}
//Define the sendMsg method of the ZmComposeController
controller.sendMsg = function(attId, draftType, callback) {
//write here the code of the sendMsg method and your specific code
alert("test");
};
};