Difference between revisions of "TSmtpCli.CalcMsgSize"
Jump to navigation
Jump to search
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 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 == |
Revision as of 15:05, 29 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