public function queue($view, array $data = [], $callback = null, ?string $queue = null): ReceiptContract
    {
        $mailer = $this->getMailer();

        if ($view instanceof MailableContract) {
            $this->updateFromOnMailable($view)->queue($this->queue);
        } else {
            $callback = $this->buildQueueCallable($callback);
            $with = \compact('view', 'data', 'callback');

            $this->queue->push('orchestra.mail@handleQueuedMessage', $with, $queue);
        }

        return new Receipt($mailer, true);
    }
public function queue($view, array $data = [], $callback = null, ?string $queue = null): ReceiptContract
    {
        $mailer = $this->getMailer();

        if ($view instanceof MailableContract) {
            $this->updateFromOnMailable($view)->queue($this->queue);
        } else {
            $callback = $this->buildQueueCallable($callback);
            $with = \compact('view', 'data', 'callback');

            $this->queue->push('orchestra.mail@handleQueuedMessage', $with, $queue);
        }

        return new Receipt($mailer, true);
    }
public function queue ( $ view , array $ data = [ ] , $ callback = null , ? string $ queue = null ) : ReceiptContract { $ mailer = $ this -> getMailer ( ) ; if ( $ view instanceof MailableContract ) { $ this -> updateFromOnMailable ( $ view ) -> queue ( $ this -> queue ) ; } else { $ callback = $ this -> buildQueueCallable ( $ callback ) ; $ with = \ compact ( 'view' , 'data' , 'callback' ) ; $ this -> queue -> push ( 'orchestra.mail@handleQueuedMessage' , $ with , $ queue ) ; } return new Receipt ( $ mailer , true ) ; }
Force Orchestra Platform to send email using queue.

@param  \Illuminate\Contracts\Mail\Mailable|string|array  $view
@param  array  $data
@param  \Closure|string|null  $callback
@param  string|null  $queue

@return \Orchestra\Contracts\Notification\Receipt
Force Orchestra Platform to send email using queue .