Link to home
Start Free TrialLog in
Avatar of Amitava_Mukherjee
Amitava_MukherjeeFlag for India

asked on

lotusscript to webmail

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


will it works in webmail of lotus? if not, what will be the code to run it from webmail?
Avatar of CRAK
CRAK
Flag of Netherlands image

What exactly are you trying to archieve?
In a web environment lotusscript can only be used in agents (e.g. WebQueryOpen). It executes on the application server. The details you're trying to obtain would be retrieved (if available) from notes.ini on the server! (i.e. not from the notes client!)

Whatever it is that you're trying to do, you will need to set this agent to run as webuser, access the public NAB, lookup the user and retrieve his/her mailserver.
On the other hand... if you're in webmail... isn't NotesSession.CurrentDatabase what you're after?
CRAK, please have a look at some earlier questions. Asker wants some sort of trace, for which he needs the server...
So.... please join the party, Sjef!
Avatar of Amitava_Mukherjee

ASKER

i want to customize our send button from lotus client as well as from lotus webmail so that whenever users want to send a mail, it will check a white list group in his mail server and if all the addresses are available in white list then the mail can be send else throw a message that the address is not white listed.

for this i first want to collect user homeserver. bosman have send the the code snippet given above, and it is working fine in lotus client portion. the send button of lotus client is working fine. now i want to do that in the webmail interface also. i never used that interface for my customization. thats why i want to know if the above code snippet will work in lotus webmail portion or not.
i beg your perdon, the above code is given by "jagaduri" from expert exchange
ASKER CERTIFIED SOLUTION
Avatar of CRAK
CRAK
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i have to go through your solution. i am going to my new year vacation for 3 days. i will be back on 3rd jan 10. happy new year to all of you and please give me these days to close this call :D. i will try these out on 3rd jan of the new year
No problem, tough questions can stay open longer if you want to.

Best Wishes!
Can you please give us an update on the status?
i am really really sorry for my delay.

actually i joined today after a long vacation. i have not found any place where the code is to be written for webmail portion. i am frantically searching some help just to know where the code is to be written for this purpose (anywhere in server or in client, i think it should be somewhere in server). i have developed the client side code a lot for lotus client with lotus script and formulla language, but for webpart this is my 1st assignment. thats why it is taking too much time to resolve.

sorry again
thanx, and sorry for the delay of closing this comment