Implemented saving and sending messages from file