Machine logic implemented techniques for preventing sending messages by mistake (with such “mistakes” including sending a message to an unintended recipient). One embodiment of the technique includes: detecting an intention of sending a message to a target user; responsive to detection of the intention, predicting a risk that the target user is not a desired recipient of the message; and providing a prompt responsive to the predicted risk being higher than a predetermined threshold.