PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
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.
  • WINDEVWEBDEV - Server codeWindows Mobile emails managed via the MS Exchange client (or via Pocket Outlook): EmailCloseSession is used to close the MS Exchange session (or the Pocket Outlook session).
  • WINDEVWEBDEV - Server code 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 WINDEV or WINDEV Mobile program or at the end of WEBDEV session.
LinuxJava Only the POP3/SMTP sessions are supported.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
// Start an email session via the SMTP/POP3 protocol
IF EmailStartSession(USER, PASSWORD, "pop3.providername.com", ...
"smtp.providername.com") = True THEN
UserName = USER
ELSE
UserName = ""
Error("Unable to establish the connection")
END
// If a session is started, close this session
IF UserName <> "" THEN
EmailCloseSession(UserName)
UserName = ""
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:
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC)

Closing an email session via MS Exchange, Pocket Outlook or Lotus Notes Hide the details

EmailCloseSession(<Session>)
<Session>: Integer, or emailOutlookSession or emailNotesSession variable
Identifier of current email session. This value can be:
Related Examples:
WD Mail 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.
The POP3 Email functions 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.
Pocket Managing Contacts Mobile (WINDEV Mobile): Pocket Managing Contacts
[ + ] This example presents the management of contacts in Pocket PC.
The following topics will be presented in this example:
1/ the loopers
2/ the use of queries
3/ sending SMSs
4/ sending emails
5/ the phone call.
WW_CMS 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Java wd230java.jar
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment