Dynamic Web Mail Redirection

I have seen many issues regarding Web mail redirection...i.e., what is a steady and efficient means by which to present a users mail file over the Web. Every Notes domain works off of the Domino Directory, as its known in R5. The code below uses the Domino Directory and several of its standard components to quickly and easily enable this. Basically what this does is builds a URL to launch based upon the users person document in the Domino Directory.

1. I created another view in the Domino Directory off of the standard "People" view called PeopleInternetAccess|InternetMailAccess.

A. The first column formula has been changed to:
@Trim(@Subset(Firstname;1)) + @If(MiddleInitial != "";" " + MiddleInitial;"") + @If(LastName !="";" "+@Trim(@Subset(LastName;1));"")

This gives me the username from the person document, which will now match @Name([CN];@UserName).

B. The second column formula has been changed to:
"http://" + @If(@Name([CN];MailServer) = "<ServerName>";"<ServerURL-IPAddress>";"<AlternateServerURL-IPAddress>") + "/" + @Left(MailFile;4) + "/" + @RightBack(MailFile;5) + ".nsf/?OpenDatabase"

This takes the name of the mail server for that user from their person document and assigns the appropriate Web Reference to it. The only thing that may need to be changed or even removed is the @Left(MailFile;4) parameter. All of our users mail files are in a subdirectory called "mail", hence the parameter. Obviously, you will need to nest the @If statements for more servers...simple enough.

2. I have a form in my homepage frameset with a hidden field, called "getInfo". It is computed, with the following formula:

3. I have a shared action, in the action bar of this form, with the formula:

This launches a new browser window, which contains the users mail file based solely upon their login to the site and its matching URL in the Domino Directory.

This was first published in March 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.