-1

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.

Slava Ivanov
  • 6,666
  • 2
  • 23
  • 34

3 Answers3

1

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 .

Anders Lindahl
  • 41,582
  • 9
  • 89
  • 93
0

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.

Kerr
  • 2,792
  • 21
  • 31
  • I did play with NotesMIMEEntity class and it does the job, but only on postsend event, which is too late. Of cause I am not going to create my own message just to add one more header, this is not an option too. What I am looking for is may be to set some "special" document item on querysend event which will be translated into the message header, or change well known header (ex. X-Mailer, which is $Mailer item). But looks like I cannot access headers at this time or I am doing something wrong. Thanks for replay anyway. Still looking for advice ;) – Slava Ivanov Dec 16 '09 at 14:39
0

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