added a mailer functionality for orders