Magnetic fields and the temperature structure of the chromosphere-corona interface