moved the sendMessageToUser function into the message helpers file