implemented sending of messages to user