The mean square fluctuation and the expectation value of the stress-energymomentum tensor of a neutral massive scalar field at finite temperature are determined near an infinite plane Dirichlet wall, and also near an infinite plane Neumann wall. The flat background has an arbitrary number of dimensions and the field is arbitrarily coupled to the vanishing curvature. It is shown that, unlike vacuum contributions, thermal contributions are free from boundary divergences, and that the thermal behaviour of the scalar field near a Dirichlet wall differs considerably from that near a Neumann wall. Far from the wall the study reveals a local version of dimensional reduction, namely, corrections to familiar blackbody expressions are linear in the temperature, with the corresponding coefficients given only in terms of vacuum expectation values in a background with one less dimension. It is shown that such corrections are "classical" (i.e., not dependent on Planck's constant) only if the scalar field is massless. A natural conjecture that arises is that the "local dimensional reduction" is universal since it operates for massless and massive fields alike and regardless of the boundary conditions.