Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Mail Server name by lotusscript

Posted on 2009-12-29
9
Medium Priority
?
1,804 Views
Last Modified: 2013-12-18
How can i get the user domino server by lotusscript / formulla language? if i use "@MailDbName", it returns "" (blank string) if user logs into his local replica.

i want to trace the domino server name of the user (may be from location document->server->mail/home server field). or is there any other way to get domino server name by lotusscript/formulla language?
0
Comment
Question by:Amitava_Mukherjee
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 5

Assisted Solution

by:zzx999
zzx999 earned 400 total points
ID: 26136618
any of those should help:
   1. Get home mail server - using eval("@MailDbName");
   2. open names.nsf on that server - notesSession.getDatabase (server, "names.nsf")
   3. open the Servers view - db.OpenView ("Servers")
   4. get collection of all server names from that view - col = vw.allEntries
   5. iterate over all and get server names - notesViewEntry.ColumnValues(3)
0
 

Author Comment

by:Amitava_Mukherjee
ID: 26136655
first of all as i mentioned earlier "@MailDbName" oftens returns null string if user uses local copy of the lotus. so point 1 and 2 is irrelevant. in point no 3 as far as i understand db=notesdatabase. but for declaration of this db one parameter is domino server name. can you please make your comment clear?

i am a novice in this field, can u please make a bit clearer for me please?
0
 
LVL 5

Expert Comment

by:zzx999
ID: 26136725
What's you server version?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Amitava_Mukherjee
ID: 26136769
My server version is 7.0.2. But i want to make a customized send button in the lotus client where the code will execute. Lotus client version is also 7.0.2.
0
 
LVL 5

Assisted Solution

by:zzx999
zzx999 earned 400 total points
ID: 26136897
@MailDbName returns an empty string ("") if:
          o The database is local
          o The formula is used in a Scheduled agent running on the server
Try use @Name to extract a part of the name; for example, [CN] to extract the common name.
0
 

Assisted Solution

by:jagaduri
jagaduri earned 1200 total points
ID: 26136913
Hi use the below code... it will fetch the mail server from your notes.ini file even if ur in Local.

Dim session As New NotesSession
Dim server As String
server = session.GetEnvironmentString("MailServer", True)
Msgbox server

Try and let me know
0
 
LVL 46

Assisted Solution

by:Sjef Bosman
Sjef Bosman earned 400 total points
ID: 26136919
In order to send a mail you don't need to know the server name. @MailDbName returns "server":"filename", and by definition, when the user opens a local replica, it returns "":"filename" (i.e. a list of two values, the first being the empty string).

Comes the question: what do you want to trace? Did you know that there are very interesting fields in a received mail? For example: Received, RouteServers and RouteTimes.

If you REALLY want to trace mail, enable Mail Tracking on the server. If you want to log ALL mail, enable Mail Journalling on the server.
0
 

Expert Comment

by:jagaduri
ID: 26137040
Amitava_Mukherjee is it working?
0
 

Accepted Solution

by:
Amitava_Mukherjee earned 0 total points
ID: 26143092
Please give me some time to try out this solutions. I will be back within 24 hours.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question