Hi! Is there a way to retrieve the mail server of a certain user that logs in the portal?
Scenario:
I use a Domino Web Mail Redirect to redirect users to their mail servers. We use multiple different mail servers?
Hi! Is there a way to retrieve the mail server of a certain user that logs in the portal?
Scenario:
I use a Domino Web Mail Redirect to redirect users to their mail servers. We use multiple different mail servers?
Subject: Retrieving the Mail Server
Call notesRegistration.GetUserInfo( username$ [, retmailServer$ [, retmailFile$ [, retmailDomain$ [, retmailSystem% [ , retprofile$ ]]]]])
will give you mailServer, mailFile etc. for a given user.
Example from designer help:
Sub Initialize
Dim session As New NotesSession
Dim reg As New NotesRegistration
reg.RegistrationServer = “AceOne”
Call reg.GetUserInfo(“Roberta Person”, _
mailserver$, _
mailfile$, _
maildomain$, _
mailsystem%, _
profile$)
Messagebox mailserver$, “Mail server”
Messagebox mailfile$, “Mail file”
Messagebox maildomain$, “Mail domain”
If mailsystem% = 1 Then
mailsystemtext$ = "Notes mail"
Else
mailsystemtext$ = "Other than Notes mail"
End If
Messagebox mailsystemtext$, “Mail system”
Messagebox profile$, “Profile”
End Sub