TSmtpCli.CalcMsgSize
Main page -> ICS component reference -> TSmtpCli -> CalcMsgSize
Definition
procedure TSmtpCli.CalcMsgSize
- Inherited from TCustomSmtpClient.CalcMsgSize
Description
Calculates message size by precomposing the message including encoding of all text parts to obtain the correct size, base64 attachment size however is just calculated. The result of the method is written to new public property MessageSize. Useful if you want to implement a progress bar or make use of (RFC-1870 SIZE extension) (see MailSnd demo). Note that the returned size is not guaranteed not be 100% correct, it's pretty exact though!
Example
nothing yet
Best practices
nothing yet