procedure SendMessageAdvanced(UIN: LongWord; const Msg: String; ID: Word; RTFFormat: Boolean)
Sends Msg to UIN with advanced options, after UIN has got your message you will receive confirmation. ID - randomly generated value, may be used for packet acknowledgements (see OnAdvancedMsgAck event).
If your Msg is in the RTF(RichText Format), then RTFFormat parameter should be True, otherwise - False. Beware of using the RTF Format, some clients(old versions of ICQ, linux & windows clones) don't support it.