ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Managing emails
  • Connection and timeout functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Changes the value of the "timeout" for connecting to the SMTP, POP3 and IMAP messaging servers. The value of the "timeout" is set to 10 minutes by default. This value is returned by EmailGetTimeOut.
Reminder: The timeout is the maximum duration of no response from the mail server.. If the server does not respond within this timeout, the connection fails.
Syntax
EmailSetTimeOut(<Timeout Duration>)
<Timeout Duration>: Integer or duration
Timeout value in seconds. This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • the duration in a readable format (e.g., 1 s).
Remarks

Connection and timeout functions

The connection functions (EmailStartSession, EmailStartPOP3Session and EmailStartSMTPSession) are locking functions during the entire connection. If the server does not respond, these functions are locking functions during the timeout duration.
Remark: The timeout value defined with function EmailSetTimeOut only concerns the time spent waiting for the mail server response.. The real execution time of EmailStartSession, EmailStartPOP3Session and EmailStartSMTPSession can be greater than this value (for a slow DNS for example).
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.
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help