ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Calculates the size of specified message (without loading the message). The size corresponds to the space taken by the email in the mailbox (size of message and attached files).
This function can be used with the POP3 and IMAP protocols.
Reminder: Before reading an email, it is necessary to start a session with EmailStartSession.
Example
// Read the emails whose size does not exceed nMaxSize
I is int
FOR I = 1 TO EmailNbMessage(UserName)
IF EmailMessageLength(UserName, I) < nMaxSize THEN
// Read and process the message
ReadMessage()
ELSE
Info("The size of the email exceeds the maximum size and it cannot be read")
END
END
Syntax
<Result> = EmailMessageLength(<Session> [, <Message number>])
<Result>: Integer
Total size (in bytes) of email (message and attached files).
<Session>: Character string, or emailPOP3Session or emailIMAPSession variable
Identifies the user session. Corresponds to:
<Message number>: Optional integer
Identifies the message whose size must be calculated. If this parameter is not specified, <Result> returns the size of the current email.
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help