How to work with sent messages