Preheat oven to 350 degrees F (175 degrees C). Place butter in a 9x13 inch baking pan and set in oven to melt.
In a medium bowl, whisk together eggs, salt, sugar, pepper, milk and flour. When mixture is smooth, stir in corn. Remove pan from oven when butter is melted. Pour butter into corn mixture and stir well. Pour corn mixture into baking pan.
Bake in preheated oven for 1 hour or until set in center and golden brown on top.