开发者

How to add X-header to outgoing mail with LotusScript

I am looking for the Lotus Script which would add X-header to the outgoing e-mail if it has particular item in the list. The item v开发者_JAVA技巧alue is set from the custom checkbox, added to one of templates. I also would like to know where to add this script in designer view (querysend event?). Thanks.


If you have control over the Domino server, you can configure it to include certain Notes items as x-headers on outgoing mail.

Check out Always send the following Notes items in headers on Setting advanced outbound MIME options .


You can set MIME headers using the CreateHeader method of NotesMIMEEntity. I've only ever used this when constructing a complete email programmatically in an agent, so not sure where to hook that into a document created from the client. The post save event should give you a document you can convert to MIME and then add the header, but it's likely to be a little fiddly. You'll have to try it out.


If you create an notes item, then you can use the "Always send the following Notes items in headers", ie $MyNotesItem will become X-MyNotesItem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜