protected function sendOrderEmail($order)
{
$sendOrderEmailOption = $this->_input->getOption('email');
if ($sendOrderEmailOption == 1) {
$order->sendNewOrderEmail();
$this->_output->writeln(sprintf("<info>Order email has been sent to: %s</info>", $order->getCustomerEmail()));
}
}