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.
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 : wd250com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment