Lotus Notes Agent to forward an email on a button press

大憨熊 提交于 2020-01-05 19:06:10

问题


I would like to add a butoon to the toolbar in Lotus Notes that performs the following actions when clicked on:

  • Forward the selected email (in preview pane), cc'ing the sender of the original email, and with some standard text cc'd into the body of the email.

Any advice on where to start with this would be much appreciated. I have been trying to work it out from the Notes user guide but am not getting very far.

Thanks very much,

Rob.


回答1:


Create a new toolbar button clicking File\Preferences...\Toolbar\Customize\New\Button... and use for toolbar button this formula:

_From := @Text(From);
@Command([MailForward]);
@Command([EditNextField]);
@Command([EditInsertText]; _From);
@Command([EditGotoField]; "Body");
@Command([EditInsertText]; "Your text" + @NewLine + "goes here...")



回答2:


You can also use the Environment Variable fwdID - it is set in the Actions to Forward mails. This ID refers to the current mail i.e. the "forwarded mail". Using this variable you can get any values from the "source" document and enter these values into the new (forward) mail - e.g. use LotusScript in the PostOpen Event of the Memo-Form.

Attention: the ID remains in the notes-ini until the next forwarding action. Therefore you either set it to "" in your source or you have to proove that not any new memo receives the values from the one mail you forwarded days ago...



来源:https://stackoverflow.com/questions/16344710/lotus-notes-agent-to-forward-an-email-on-a-button-press

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