In an "at will" employment arrangement, a company can terminate an employee by any means it deems appropriate; this includes a text. The fact is that most employers can set the conditions of the workplace much as they sees fit. That is unless an employer's action violates company policy or the terms of an employment contract or union agreement. Also, an employee's treatment must not constitute some form of legally actionable discrimination.