I’ve been trying to build a button to add to an email sent to a Global Email group that lets the receiver “Opt out” from the mail group.What I want the button to do is to Edit the Group and remove the user then save and close.
That way the user only needs to click the button and the rest is done without them knowing what happens behind.
Anyone know how this can be done?
Subject: Editing directly requires too much access
You don’t want to give your end users access to edit the group, I suspect, because if you do there’s no way to prevent them editing it manually and making changes you didn’t want them to.
One good way to do this is via a mail-in request database. This lets the user issue the request even if they are offline, by a simple call to @MailSend function. Make it sign the email so that you can be sure who it’s coming from. Address the mail to a mail-in database with an agent that runs after new mail arrives. Write the agent in LotusScript (or Java) so you can use the NotesDocument method to validate the signature. Read the group name and sender, verify that the group is one of those your request database manages, look up the group record and make the requested change. Bear in mind that email addresses may have a domain name appended, which you may have to strip off to find the matching entry in the members list.