Thank you Danny and Karl Henry.
The thing is that I already know how to send emails and add people to the list etc.
What I do not know is in which script library or agent to put it so that it works in iNotes.
In any case, I am marking this as resolved.
I told the users that it will only work on the Notes Client.
Thanks.