Effects of dispersion forces in optical resonance phenomena