PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
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 handling an email (reading an email for example), a session must be started by EmailStartSession.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for 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 Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
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:
Versions 15 and later
Java The emailPOP3Session and emailIMAPSession variables are not available.
New in version 15
Java The emailPOP3Session and emailIMAPSession variables are not available.
Java The emailPOP3Session and emailIMAPSession variables are not available.
<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 : wd240com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment