Resonance electron capture of thermal electrons