From Overbyte
Jump to: navigation, search

Main page -> ICS component reference -> TSmtpCli -> CalcMsgSize


procedure TSmtpCli.CalcMsgSize

  • Inherited from TCustomSmtpClient.CalcMsgSize


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!


nothing yet

Best practices

nothing yet