Added conditional send Email