Within a quadratic functional integral approach, we investigate the role played by surface terms in the fluctuation-induced surface-surface interaction of free standing smectic liquid crystals. We show that the typical 1/l decay of the Casimir-type contribution to the free energy of a film with thickness l is replaced by a faster 1/l3 decay at a characteristic surface tension. An intermediate 1/l2 decay can also take place for specific surface parameters with unlike boundary conditions. In all the investigated cases, a repulsive long-range force appears only for mixed boundary conditions with strong anchoring at one surface and weak anchoring at the opposite one. Further, the amplitude of the thermal Casimir energy, besides being influenced by the applied surface tension, depicts a nonmonotonic dependence on the coupling between the outermost film layers, reflecting a crossover between strong and weak anchoring regimes.