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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 manipulating an Email (e.g. reading it), you need to open a session using the EmailStartSession function.
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: 03/27/2025

Send a report | Local help