It *may* be a legally binding contract. There is no set orÂ  prescribed form for contracts generally, or any requirement that they be in a formal writing or document; after all, or spoken, agreements are enforceable. Since a text message is a form of writing--and therefore is