Changing Sent By in Mail Document in Lotus Notes

2019-01-20 05:17发布

问题:

I would like to also change the field "sent by" (displaying when there is a mailDoc.Principal) in the mail being sent by a triggered agent created in lotus script. Is it possible to change it I already tried the following codes

mailDoc.SentBy = strFrom
mailDoc.tmpDisplaySentBy = strFrom
mailDoc.FROM = strFrom
mailDoc.SendFrom = strFrom

Still I couldn't change that part.. Is it possible or is there some limitation?.. Thanks

回答1:

You can't change it. The server puts always the current username into field Principal/From.

But there is a workaround: instead of sending the mail save the mail document into mail.box on server with a Principal/From field content of your choice. This way server won't change the field anymore.

Here is an example from Karl-Henry Martinsson how to do it.