ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
  • Properties specific to emailNotesSession variables
  • Functions that use emailNotesSession variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The emailNotesSession type is used to access a Lotus Notes messaging server in order to retrieve the messages found on this server and to send messages. The characteristics of the connection can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Start the session
MyNotesSession is emailNotesSession
 
MyNotesSession..AddressDominoServer = "domino.mycompany.com"
MyNotesSession..LotusNotesDatabase = "email/accounting.nsf"
MyNotesSession..CertificatePath = SysDir(srMyDocuments) + ["\"] + "certificates\notes.id"
MyNotesSession..Password = EDT_Password
 
EmailStartSession(MyNotesSession)
Remarks

Properties specific to emailNotesSession variables

The following properties can be used to handle emailNotesSession variables:
Name Type used Effect
AddressDominoServerCharacter string
  • Name of Domino server,
  • Empty string ("") if the database is a local database.
LotusNotesDatabaseCharacter stringName 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 property 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.
CertificatePathCharacter stringPath 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 property 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.
PasswordCharacter stringUser password. This password is given by the service provider or by the network administrator.

Functions that use emailNotesSession variables

EmailCloseSessionCloses an email management session depending on the selected mode (SMTP/POP3, IMAP, MS Exchange or Lotus Notes).
EmailDeleteMessageDeletes the current email using the current protocol (POP3, IMAP, MS Exchange, Lotus Notes or Outlook).
EmailGetAllRetrieves all the emails found on a server.
EmailNbMessageReturns the number of incoming messages currently found:
  • on the email server (POP3 protocol only).
  • in the Outlook messaging software.
EmailReadFirstReads the first incoming email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook).
EmailReadFirstHeaderReads the header of the first incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailReadLastReads the last incoming email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook).
EmailReadLastHeaderReads the header of last incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailReadMessageReads an incoming according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailReadMessageHeaderReads the header of an incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailReadNextReads the incoming email found after the current email according to the protocol (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook).
EmailReadNextHeaderReads the header of the email found after the current email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailReadPreviousReads the email found before the current email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook).
EmailReadPreviousHeaderReads the header of the email found before the current email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook).
EmailSeekFirstNotesSeeks one or more emails according to specified criteria, in a local or remote Lotus Notes or Domino database.
EmailSendMessageSends an email using a given protocol (SMTP, MS Exchange, Lotus Notes, Outlook).
EmailStartSessionStarts an email management session based on the selected management mode (POP3, SMTP, IMAP or MS Exchange).
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help