How to hook the 'send' button in lotus notes client

和自甴很熟 提交于 2019-12-12 00:32:52

问题


Due to some reasons, I'm not allowed to touch Domino server but would like to make my plugin be able to modify email content right before it's being sent in client side. All comes up in my mind is to add a listener or somehow to hook the 'send' button of a message, which holds on when being clicked and runs my codes, and then sends the message. Is there anyone knowing about this trick, or any other way to meet the same purpose? Thanks. BTW: I'm using Lotus Toolkit in Java.

Update: I found a very similar question here:Lotus Notes - Java UI - Eclipse plugin But I found Querysend only exists in NotesUIDocument of LotusScript but not Java. Strange.


回答1:


You have two choices: install a DLL built using the Notes C API on every Notes client computer, or make modifications to the mail template. In the latter case, though, rather than implementing your code in the QuerySend event it probably makes more sense to implement to implement your code directly in the click event of the shared Send action - and that is just Lotus' formula language, so neither LotusScript nor Java is needed.



来源:https://stackoverflow.com/questions/31861971/how-to-hook-the-send-button-in-lotus-notes-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!