Manage Learn to apply best practices and optimize your operations.

Smart icon button for mail access in administrator client

Smart icon button for mail access in administrator client

View expert feedback to this tip.

Having both Lotus Notes Client and the Domino Administrator client can take up a great deal of system resources on your PC. I have a tendency to need the Administrator client more for my work than the Lotus Notes client, and basically only use it to check my mail.

I like to have my mail database open, and you can do that in the Adminstrator client, but the only way I found apparent was to go through File-->Database-->Open, and then wade through the hefty directory structure we have for databases on the mail server to find my mail database and open it.

Because of this, I started looking into code that would allow me a quick and easy access to my mail database while in the Domino Administrator client. I settled on an @Command placed into a smart icon.

This little convenience is very simple to implement. Open your smart icons. Scroll to the bottom under Available icons on the left, and pick one of the Macro Buttons. Drag it over to your Smart Icons on the right under Universal. Once it is in place select the icon you just moved over to the Universal window and select the EDIT ICON button on the right. Type in whatever description you want for your mail file name, and then select the Formula button. Copy the following code into that window and select done.

That's it, and now your mail database (or any other you choose) is just a one touch button away in your administrator client, even when you are doing something else and can't get to the Files tab of your Admin Client.

@Command([FileOpenDatabase];"server/domino domain":"mail/your mail file.nsf")


You could also get clever and look in the current location doc for the server and filename if you wanted to get flashy!

But I thought, Hang on a moment, there's already a way to do this without all the file/open polava!

Why not just use the mail icon that's at bottom right of all of the clients - and select "Open Mail" from the pop up menu?

I know it's two clicks instead of one (for a SmartIcon) but I'm going for the KISS method (Keep It Simple Stupid - me, not you!) of solving the problem!

-- Guy Rossler


John Newcomb submitted a helpful tip labeled "Smart Icon Button for Mail Access in Administrator Client."

Though the code he submitted will work, here is another way to do it. The following code will work, even if your mail file was moved for some reason, making this a fix for all times.

Instead of:

@Command([FileOpenDatabase];"server/domino domain":"mail/your mail
Try this:
@Command([FileOpenDatabase]; @MailDBName)
-- Michael Kinder


This is in response to the tips submitted to open the mail file from a smart icon in the Admin Client. The easiest and shortest method is:

Code: @Command( [MailOpen] )
-- Henry Wouda


Open your mail file using File-->Database-->Open in the Administration client. Once the database is open click and drag the inbox tab to the bookmark bar. Bingo, a bookmark to your inbox. Easy as that. No code needed.

-- Michael R. Barrick


At first glance this might seem to be a useful tip but it isn't really necessary. In all three clients (Notes, admin, designer) you have the status bar at the bottom of the screen. Clicking the little envelope icon brings up a pop-up menu where you can create a message, scan unread mail, open mail, etc. Why reinvent the wheel?

-- Bob J.


There are different results from the code provided above. Some users may not want to force-open the Notes client and remain only inside the Admin client. Both codes 1

@Command([FileOpenDatabase];"server/domino domain":"mail/your mail file.nsf")
and 2:
@Command([FileOpenDatabase]; @MailDBName)
do this. Whereas code 3 and the Open Mail option (status bar) will force the Notes client to open, thus defeating the purpose of this smart icon option.

Code 3 is

@Command( [MailOpen] )
While they are all great ideas, and we all can agree that we have different preferences, these are not re-inventing anything, just utilizing Notes dynamics.

-- Jake M.

Dig Deeper on Domino Resources - Part 6

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...