There is no strict rule that posting cash via mail is illegal. It is at your own risk of losing it even the envelope is well packed. The post office is not liable for any loss therefrom. If you spell this out to post office of sending cash, they could refuse it to be mailed.