There is an option in the microflow activities that does exactly that. If you create a new activity, double-click on it to configure the action. Select “Client”- “Send text message” to configure the message.
For a detailed step-by-step description of how to a text message you can check the “How To”: https://world.mendix.com/display/Howto/Display+a+text+message
Hope this helps!