Wash the cooler with hot, soapy water and rinse it well. To pre-warm it, pour in a few quarts of hot tap water, close the lid for 5 minutes, then dump the water out.
Remove the husks and silk from the corn. Snap any extra-long ears in half so they lie flat.
Bring the water to a full rolling boil in large pots or kettles. You may need to boil it in batches.
Lay the corn in the bottom of the cooler in an even layer or two.
Carefully pour the boiling water over the corn until it's covered by about 1 inch. Close the lid right away and keep it shut.
Let the corn sit for 30 minutes. It will be tender and ready to eat, and it stays hot in the closed cooler for about 2 to 3 hours.
Lift the ears out with tongs, then serve with butter, salt and pepper.
Notes
How much corn fits: a 48 to 54-quart cooler holds about 2 dozen ears. For 2 dozen, plan on roughly 5 to 6 gallons of boiling water. A small 25 to 30-quart cooler holds about 12 ears.Keeping it hot: keep the lid closed. The corn stays hot for about 2 to 3 hours. Serve or refrigerate it once the water is no longer steaming hot.Cooler type: use a hard-sided plastic cooler, not a foam one. If you're unsure whether yours can handle boiling water, check the manufacturer's instructions.