functions for sending messages to users