Here are some best practices to ensure you're texting on the right side of the law, all while providing patients with the absolute best service: Ask for consent for all communications. Provide two different opt-ins — one for marketing messages, one for medical messages. Marketing consent is mandated by the law..