/** * Execute the job * * @throws \Exception */ public function execute() { $message = $this->getContent(); if (!$this->emailService->send($message)) { throw new \Exception('snif'); } }
public function send() { return $this->service->send($this->message); }