what are the rules for writing letters in jail

Can a person in jail write a letter or not? If ‘yes’, then what can be written in it?

Letter In Jail: You can write letters even when you are in jail. You might…