Added sending email with invoice in order status = 5, some small changes in quickpay payment gateway