Yes, you can legally text message your customers if you comply with your local text marketing laws and regulation. Research the laws that apply to your country or region and make sure you comply. An example is the Telephone Consumer Protection Act (TCPA). It requires you to get written consent from customers before sending promotional messages. The CAN-SPAM Act requires you to avoid sending unwanted messages (Spam), and provide ways for customers to opt-out easily.