Preheat the oven to 350°F. Grease two 9-inch round cake pans and line the bottoms with parchment paper.
In a large bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda and salt until evenly mixed.
In a medium bowl, whisk the milk, eggs, vegetable oil and vanilla until smooth.
Pour the wet mixture into the dry ingredients and whisk until just combined, scraping the sides of the bowl.
Pour in the boiling water or hot coffee and whisk until smooth. The batter will be very thin — that is normal.
Divide the batter evenly between the pans and bake for 35 minutes, until the centres spring back and a toothpick comes out clean.
Cool in the pans for 15 minutes, then turn out onto a wire rack and cool completely.
Beat the butter for about 2 minutes until creamy. Add the cocoa powder and salt and mix on low.
Add the powdered sugar a cup at a time, alternating with the milk. Add the vanilla and beat for 3 to 4 minutes until light and fluffy.
Place one layer on a cake stand, spread 1 to 1 1/2 cups of frosting over the top, and add the second layer.
Frost the top and sides, then chill for 30 minutes before slicing.