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
EmailGetTimeOut (Function)
In french: EmailLitTimeOut
Reads 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 can be modified by EmailSetTimeOut.
Reminder The timeout is the maximum duration of no response from the SMTP, POP3 or IMAP mail server. If the server does not respond within this timeout, the connection fails.
Syntax
<Result> = EmailGetTimeOut()
<Result>: Integer
Timeout value in seconds.
Note There is always a "timeout" defined on the server. Therefore, no error can be returned by EmailGetTimeOut.
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.
Warning The timeout value defined with function EmailSetTimeOut has no relation to the duration of functions EmailStartSession, EmailStartPOP3Session and EmailStartSMTPSession. Indeed, it is the duration of non response from the server. The time of the address resolution must be added to this duration.
For example, with a server that responds instantaneously, the connection can take 3 to 4 seconds if the DNS is slow (even if the timeout is set to 1 second).
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help