When the soil temperature reaches 50 degrees, you can plant corn. When the soil temperature reaches 70 degrees, you can plant beans.
The best way to avoid corn smut is to plant resistant varieties of corn. If you see it developing, pull the plant and put it in your trash. If you compost corn smut and use it in your garden, you have already introduced it back into your corn patch.