LotusScript Libraries

My code contained in a script library sends out emails. If I save the library, it signs it with my id, so each email sent is from me. Is there a way – other than setting up an general admin id to sign the library – to have the emails come from the server since the server is the one doing the work?

What I mean is, do script libraries and their events allow you to choose to “Run on behalf of” like the agent security allows?

Thanks for your help.

Subject: You can copy the mail directly into mail.box

You can copy the mail directly into mail.box instead of using doc.send.

Before copying you must set the fields doc.from, doc.recipients and doc.posteddate.

If your Server had multiple mailboxes (mail1.box, mail2.box, …) you must try to open these ones first before mail.box.

Subject: LotusScript Libraries

I’m not entirely sure I understand… if you have code in a library sending out emails, what is the trigger? Are the emails sent at the end of a user-triggered process (e.g. some kind of event), or are they sent by a scheduled agent on the server?

If the latter, then the “From” issue comes down to the Notes ID used to sign the agent, not the underlying script library. If the former, then you can have your code amend the “Principal” field in the mail generated, and this will help. The mail will appear to be from the nominated name, but it will still say “Sent by ” beneath this address at the top of the mail.

HTH

Subject: RE: LotusScript Libraries

The emails are being triggered by the end-user, so the ID of the person who signed the agent is showing in the From field – in this case, me.

But, that’s a good idea, I just didn’t think of it. Thanks.

Subject: RE: LotusScript Libraries

You can sign the full database using serverID.This can be done from Domino Administrator screen. Select the server and the database which you want to sign. Then from Menu —> select Files —> Sign.

This action will sign the database with server id. If you now run your agent, the person will receive the email from server.

Is that’s what you are looking for?