In a medium heavy saucepan stir together sugar, cocoa and salt, then add the milk and stir with a wooden spoon, cook until the mixture starts to boil.
Remove pot from heat, add the butter and vanilla. Do not stir. Cool to room temperature. Then beat with a wooden spoon just until mixture begins to lose some of it's gloss. Put in a cake pan and let cool before cutting.