|Subject:||Re: Get size in bytes of mail|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Wed, 26 Nov 2003|
"Bruno" <lixnici…@hotmail.com> wrote in message
> I need get the size in byte from a TIdMessage to set the
> MaxValue of a TGauge.
You can't. The size is not known until the message is actually sent,
because the message that is actually transmitted is not formatted and
encoded until that point. The closest you can get is to save the message to
a stream or file and then take the size of that instead, but there's no
guarantee that the size will match exactly when the message is re-encoded
for actual transmission.
Get size in bytes of mail posted by Bruno on Wed, 26 Nov 2003