While not all contracts need to be in writing to be legally valid, certain types of contracts, such as those involving the sale of immovable property, must be written and registered. In the light of recent judgments of Indian courts, electronic contracts, agreements executed over e-mail and WhatsApp are also considered legally enforceable contracts.