email func indent corrected