src/Http/Controllers/Admin/EmailSendersController.php
public function send(int $id, Request $request)
    {
        /** @var \Railken\Amethyst\Managers\EmailSenderManager */
        $manager = $this->manager;

        /** @var \Railken\Amethyst\Models\EmailSender */
        $email = $manager->getRepository()->findOneById($id);

        if ($email == null) {
            return $this->response('', Response::HTTP_NOT_FOUND);
        }

        $result = $manager->send($email, (array) $request->input('data'));

        if (!$result->ok()) {
            return $this->error(['errors' => $result->getSimpleErrors()]);
        }

        return $this->success([]);
    }
public function send(int $id, Request $request)
    {
        /** @var \Railken\Amethyst\Managers\EmailSenderManager */
        $manager = $this->manager;

        /** @var \Railken\Amethyst\Models\EmailSender */
        $email = $manager->getRepository()->findOneById($id);

        if ($email == null) {
            return $this->response('', Response::HTTP_NOT_FOUND);
        }

        $result = $manager->send($email, (array) $request->input('data'));

        if (!$result->ok()) {
            return $this->error(['errors' => $result->getSimpleErrors()]);
        }

        return $this->success([]);
    }
Generate.

@param int                      $id
@param \Illuminate\Http\Request $request

@return \Symfony\Component\HttpFoundation\Response