Mail Preview

Mail

public function send_paid_email($preview=false){
	//Preview email content
	if($preview == true){
		return new OrderMail($order, $orders_products);
	}

	//Mail will return null even email is sent successfully.
	Mail::to($user)->send(new OrderMail($order, $orders_products));
}

Controller

public function index(){
	//return redirect(FRONT_BASE . '/cart/checkout');
	$order = OrderM::find(46);

	//Preview
	//return $order->send_paid_email(true);

	$order->send_paid_email();

	echo 'ok';
}