diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index 0d37a15..161ad04 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -1616,9 +1616,7 @@ class PageController extends Controller { $message->attach($content); $message->setSubject($subject); $body_text = $addName ? ($body." de ".$devis['defunt_nom'] ) : $body; - - $signature = $this->mailerService->getFooterContent(); - + $signature = $this->mailerService->getFooterContent($this->getUserNameForEmailSignature()); $message->setHtmlBody( "

Bonjour.

". "

$body_text

". @@ -1636,13 +1634,10 @@ class PageController extends Controller { // } } } - public function addSignatureEmailLogo (){ - $signatureImage = $this->getSignature(); - if (!$signatureImage) { - return ""; - } - //Add html img in base 64 - return "" ; + public function getUserNameForEmailSignature (){ + $configs = json_decode($this->myDb->getConfiguration(self::DEFAULT_NEXTCLOUD_ADMIN)); + $currentConfig = $configs[0]; + return $currentConfig->nom . " " . $currentConfig->prenom; } /**