Size Property
Size of particular message in e-mail account.
This property allows you to determine messages' sizes even before retrieving
message headers because messages' sizes information is retrieved immediately
after connection has been established.
Value Type: | Long | |
Parameters: | ||
Index As Long | Index of the message to get size for. Allowed range is: 1 <= Index <= POP3.MessageCount | |
Remarks: | This property is read-only |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.POP3") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.POP3") 'In ASP use Response.Write instead of MsgBox Mailer.LicenseKey = "put your license key here" Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword" If Mailer.Connected Then If Mailer.MessageCount > 0 Then MsgBox "First message size = " & Mailer.Size(1) & " bytes" End If Mailer.Disconnect End If
See Also:
TotalSize
Property
MessageCount Property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.