Difference between revisions of "TSmtpCli.CalcMsgSize"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
== Description == | == Description == | ||
− | Calculates message size by precomposing the message including encoding of all text parts to obtain the correct size, | + | 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 [http://www.ietf.org/rfc/rfc1870 (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 == | == Example == |
Latest revision as of 07:14, 30 May 2009
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