enable sending emails when orders are done

enable sending emails when orders are done