If you are using a local mail database with the Notes client, it is not very convenient to go to the replicator page each time you want to send and receive mail. So I have created a form with the property "store form in document" enabled and I populated the postopen of that form with the script you will find below.
Then I create a document with that form and I send it to the user'mail; when the user opens this document from his mail box an icon is created on his bookmark that is the send and receive button.
You can see that this code can be adjusted to do other thing like to create a bookmark for changing Internet password from the Notes client.
'You should first create a form with the property "Store Form in document enabled
'Then populate the postOpen event of this form with the following code
'Then create a document with that form and mail it to the user.
Sub Postopen(Source As Notesuidocument)
Dim session As New notessession
Dim bookmark As notesdatabase
Dim outline As notesoutline
Dim entry As notesoutlineentry
Dim LastEntry As notesoutlineentry
'First we should open the bookmark database
'Get the handle of the UserBookmarkOrder outline
Set outline = bookmark.GetOutline( "UserBookmarkOrder")
'Get the handle of the last entry in the the outline
'you can choose any place in the bookmark bar to place your entry
'For example we can place our entry on the top of the bookmark or anywhere in the middle
'Create the entry in the bookmark bar
Set entry = outline.Createentry("Send And Receive Mail",LastEntry,True)
'Set the command that will be activated once the entry is clicked
'Set the icon of the entry in the bookmark
entry.Imagestext="Link - Very Important"
This was first published in March 2001