diff --git a/app/Http/Controllers/Dashboard/SettingsController.php b/app/Http/Controllers/Dashboard/SettingsController.php index aeb6cabc14ef..7f3288855018 100644 --- a/app/Http/Controllers/Dashboard/SettingsController.php +++ b/app/Http/Controllers/Dashboard/SettingsController.php @@ -333,6 +333,17 @@ public function postMail() execute(new UpdateConfigCommand($config)); + $setting = app(Repository::class); + $parameters = Binput::get('setting'); + + if (isset($parameters['mail_signature'])) { + if ($mail_signature = Binput::get('setting.mail_signature', null, false, false)) { + $setting->set('mail_signature', $mail_signature); + } else { + $setting->delete('mail_signature'); + } + } + return cachet_redirect('dashboard.settings.mail') ->withInput(Binput::all()) ->withSuccess(trans('dashboard.notifications.awesome')); diff --git a/resources/lang/de-DE/dashboard.php b/resources/lang/de-DE/dashboard.php index d6659dc827da..f5bc946550b6 100644 --- a/resources/lang/de-DE/dashboard.php +++ b/resources/lang/de-DE/dashboard.php @@ -233,6 +233,7 @@ 'subject' => 'Test-Benachrichtigung von Cachet', 'body' => 'Dies ist eine Test-Benachrichtigung von Cachet.', ], + 'signature' => 'Benutzerdefinierte HTML E-Mail Signatur', ], 'security' => [ 'security' => 'Sicherheit', diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index 2af0d6073aea..a72689a5a623 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -233,6 +233,7 @@ 'subject' => 'Test notification from Cachet', 'body' => 'This is a test notification from Cachet.', ], + 'signature' => 'Custom HTML E-Mail Signature', ], 'security' => [ 'security' => 'Security', diff --git a/resources/views/dashboard/settings/mail.blade.php b/resources/views/dashboard/settings/mail.blade.php index 133ecb038aa6..1a9f0de0e488 100644 --- a/resources/views/dashboard/settings/mail.blade.php +++ b/resources/views/dashboard/settings/mail.blade.php @@ -40,6 +40,10 @@ +