fixing production email method