Added email functionality to orders