|
|
|
|
|
EmailMessageLength (Function) In french: EmailTailleMessage 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. // 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|