How can I modify mail in the QuerySend event?

Hello,I want to modify a mail just before it is sent. So the QuerySend event should be the right place. In the debugger I see many LotusScript objects holding the memo, but I’m unable to figure out which one I have to change. (I want to modify the bcc field based on several conditions).

I found several postings in the forum that it is possible but nobody posted the LS code.

Any hints?

Reinhold

Subject: How can I modify mail in the QuerySend event?

if something = something then source.document.copyto = “whoever@whatever.com”

end if

Subject: RE: How can I modify mail in the QuerySend event?

Hi Martijn,

thx - but I tried this before.

Even if I save the back-end form the modification is not honored, ie the mail is not sent to the address in the copyto field.

Did you manage to get it working or was your posting just a suggestion?

Reinhold