Re: Get size in bytes of mail

Giganews Newsgroups
Subject: Re: Get size in bytes of mail
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Wed, 26 Nov 2003

"Bruno" <lixnici…@hotmail.com> wrote in message
news:228BF97FF587E240lixnici…@hotmail.com...

> 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.

Gambit

Replies

None

In response to

Get size in bytes of mail posted by Bruno on Wed, 26 Nov 2003