Changes for order confirmation email, email settings must be defined in order to work