|
|
|
|
|
- Creating a profile
- Timeout
- Managing emails in asynchronous mode
EmailStartOutlookSession (Function) In french: EmailOuvreSessionOutlook Allows you to access data handled by the Outlook messaging software (emails, contacts, groups of contacts, tasks, appointments and folders). This function is equivalent to OutlookStartSession. Attention This function does not provide access to the various data handled by Outlook Express e-mail software. Note: When using the EmailStartOutlookSessionfunction, the current directory is automatically modified by Outlook.
IF EmailStartOutlookSession("MonProfil") <> 0 THEN
Info("Session ouverte")
ELSE
ErrorInfo()
END
nIDSessionOutlook is int
nIDSessionOutlook = EmailStartOutlookSession("")
IF nIDSessionOutlook = 0 THEN
Error("Echec d'ouverture de la session Outlook", ErrorInfo())
ELSE
Info("Liste des dossiers des emails de Outlook :", ...
EmailListFolder(nIDSessionOutlook))
EmailCloseSession(nIDSessionOutlook)
END
Syntax
Starting the Outlook session Hide the details
<Result> = EmailStartOutlookSession(<Profile>)
<Result>: Integer - Session identifier.
- 0 (or False) if an error occurred. The ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Profile>: Character string Identifies the connection profile (see Notes).If this parameter corresponds to an empty string (""): - if several profiles are defined on the current computer, EmailStartOutlookSession displays a window containing all profiles among which the user can choose his own profile.
- if a single profile is defined on the current computer, EmailStartOutlookSession automatically selects this profile.
Starting the Outlook session while specifying the management mode of contacts/participants Hide the details
<Result> = EmailStartOutlookSession(<Profile> , <Asynchronous> [, <Start options>])
<Result>: Integer - Session identifier.
- 0 (or False) if an error occurred. The ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant.
<Profile>: Character string Identifies the connection profile (see Notes).If this parameter corresponds to an empty string (""): - if several profiles are defined on the current computer, EmailStartOutlookSession displays a window containing all profiles among which the user can choose his own profile.
- if a single profile is defined on the current computer, EmailStartOutlookSession automatically selects this profile.
<Asynchronous>: Constant or boolean Mode for sending the emails: | | emailAsynchronous or True | The outgoing emails must be transmitted in asynchronous mode (see the Notes). | emailSynchronous or False (Default value) | The outgoing emails must be transmitted in synchronous mode (see the Notes). |
<Start options>: Optional integer constant Mode for starting the Outlook session: | | outlookAPTWithContact (Default value) | The AppointmentXXX functions will list the contacts associated with the appointments in the mAppointment.Participant variable (see Appointment structure). | outlookAPTWithParticipant | The AppointmentXXX functions will list the participants associated with the appointments in the following variables:- mAppointment.Participant
- mAppointment.ParticipantCc
- mAppointment.ParticipantBcc
For more details, see Appointment structure. |
Remarks Creating a profile To start a new session with Outlook, a "profile" must be defined. This "profile" is defined in the configuration of the Internet connection with Outlook. To create a profile: - Start Outlook.
- In the "Choosing a profile" window, click [New].
- Select the "Microsoft Exchange Server" service.
- Give a name to the profile.
- Enter the name of Microsoft Exchange server.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|