FileApi start

This commit is contained in:
2021-01-07 15:54:19 +01:00
parent fae8a71bac
commit 8747812a56
16 changed files with 1111 additions and 18 deletions

View File

@@ -53,6 +53,7 @@ namespace Api\Contact {
}
$this->createNotification();
$this->sendMail();
if (!$this->success) {
return $this->createError("The contact request was saved, but the server was unable to create a notification.");
@@ -110,6 +111,17 @@ namespace Api\Contact {
return $this->success;
}
private function sendMail() {
/*$email = $this->getParam("fromEmail");
$settings = $this->user->getConfiguration()->getSettings();
$request = new \Api\Mail\Send($this->user);
$this->success = $request->execute(array(
"to" => $settings->get,
"subject" => "[$siteName] Account Invitation",
"body" => $messageBody
));*/
}
}
}