email generating fix