added logic to send email on successful order placement