Setting email parameter property in config to send email only when this on is true