PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Version of Lotus Notes
  • Time-out
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Allows you to access the data handled by the Lotus Notes messaging (emails, contacts, groups of contacts, tasks, appointments).
This function can be:
  • called directly to establish the connection to the Domino server and to specify the Lotus Notes database to use.
  • called after NotesOpenConnection. In this case, this function is only used to specify the Lotus Notes database to use.
Example
// Open the connection
// and specify the Lotus Notes database to use
IF EmailStartNotesSession("Password", "MarsServer", ...
"email/julia.nsf", "C:\Lotus Notes\julia.id") <> 0 THEN
Info("Session started and database specified")
ELSE
Error()
END
// Open the connection
SessionID is int
SessionID = NotesOpenConnection("Password", "MarsServer", ...
"C:\Lotus Notes\julia.id")
// Specify the Lotus Notes database to use
IF EmailStartNotesSession(SessionID, "email/julia.nsf") <> 0 THEN
Info("Connection established and database specified")
ELSE
Error()
END
Syntax

Establishing a connection to a Domino server and specifying the Lotus Notes database to use Hide the details

<Result> = EmailStartNotesSession(<Password> , <Domino Server> [, <Lotus Notes Database> [, <Certificate Path>]])
<Result>: Integer
  • Session identifier.
  • 0 (or False) if an error occurred. The ErrorOccurred variable is set to True. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Password>: Character string (with quotes)
Password of the user. This password is given by the service provider or by the network administrator.
<Domino Server>: Character string (with quotes)
  • Name of Domino server,
  • Empty string ("") if the database is a local database.
<Lotus Notes Database>: Optional character string (with quotes)
Name of Lotus Notes database containing the user data. This name corresponds to the path of ".NSF" file.
A relative path must be used if the Lotus Notes database is found on a Domino server.
If this parameter is not specified, the name of the Lotus Notes database will be read in the configuration file of the Lotus Notes client ("Notes.INI" file). The database used will correspond to the database of the user of Lotus Notes client for the current computer.
<Certificate Path>: Optional character string (with quotes)
Path of certificate used to authenticate the user ("ID" file). This file is given by the administrator of the Domino server. This file is required to establish the connection to the server.
If this parameter is not specified, the path of the certificate will be read in the configuration file of the Lotus Notes client ("Notes.INI" file). The certificate used will correspond to the certificate of the user of the Lotus Notes client for the current computer.

Specifying the Lotus Notes database to use Hide the details

<Result> = EmailStartNotesSession(<Session Identifier> [, <Lotus Notes Database>])
<Result>: Integer
  • Session identifier.
  • 0 (or False) if an error occurred. The ErrorOccurred variable is set to True. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Character string
Identifier of the session to start. This identifier is returned by NotesOpenConnection.
<Lotus Notes Database>: Optional character string (with quotes)
Name of Lotus Notes database containing the user data. This name corresponds to the path of ".NSF" file.
A relative path must be used if the Lotus Notes database is found on a Domino server.
If this parameter is not specified, the name of the Lotus Notes database will be read in the configuration file of the Lotus Notes client ("Notes.INI" file). The database used will correspond to the database of the user of the Lotus Notes client for the current computer.
Remarks

Version of Lotus Notes

The access to Lotus Notes is available for Lotus Notes version 6.5 or later.

Time-out

The time-out can be configured by EmailSetTimeOut.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment