Question

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 value 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.

Was it helpful?

Solution

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 .

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top