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