|
|
|
|
EmailCloseSession (Function) In french: EmailFermeSession Closes a session for email management according to the selected mode: - emails managed by the SMTP/POP3/IMAP protocol: EmailCloseSession is used to close the SMTP/POP3/IMAP session. If a POP3 session, an SMTP session and an IMAP session were started, all the sessions are closed.
 emails managed via the MS Exchange client (Outlook): EmailCloseSession closes the MS Exchange session.  emails managed by Lotus Notes: EmailCloseSession is used to close a session with the Lotus Notes messaging software.
An email session that is not ended will be automatically closed at the end of the WINDEV or WINDEV Mobile program or at the end of the WEBDEV session.
// Ouverture d'une session d'emails par le protocole SMTP/POP3 IF EmailStartSession(USER, PASSWORD, "pop3.nomfounisseur.com", ... "smtp.nomfounisseur.com") = True THEN NomUser = USER ELSE NomUser = "" Error("Impossible d'établir la connexion") END // Si une session est ouverte, fermeture de cette session IF NomUser <> "" THEN EmailCloseSession(NomUser) NomUser = "" END Syntax
Closing an email session that is using the POP3, SMTP or IMAP protocol Hide the details
EmailCloseSession(<Session>)
<Session>: Character string, or emailPOP3Session, emailSMTPSession or emailIMAPSession variable Identifies the user session. Corresponds to:
Related Examples:
|
Complete examples (WINDEV): WD Mail
[ + ] This application is an email client developed in WINDEV. It is based on the Email objects. This email client is used to retrieve and send emails by using the POP, IMAP and SMTP protocols. You have the ability to apply filters to the incoming emails. The application can also be used to manage several email accounts. The writing of an email is based on the HTML edit control.
|
|
Unit examples (WINDEV): The POP3 Email functions
[ + ] Using the Email functions to manage the POP3 protocol. This protocol is used to retrieve emails from a server.
|
|
Complete examples (WEBDEV): WW_CMS
[ + ] This example is an example of CMS (Content Management System). This is a site for content management, typically a site for displaying some articles. This example is divided into 2 parts: - An AWP part for the part that must be referenced - A WEBDEV part for the management part Note: In order for some features of the example to operate (sending emails for example), the parameters must be modified in order to adapt them to your configuration. These parameters are stored as constants defined in the code of the project.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|