Skip to content

Commit 8a889c9

Browse files
committed
Hide email content forcing using to click in a link to visit the portal
New config "hide_email_content" see BT#13475
1 parent cf62274 commit 8a889c9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main/inc/lib/notification.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ public function formatContent($content, $senderInfo)
371371
);
372372
break;
373373
case self::NOTIFICATION_TYPE_MESSAGE:
374+
$allow = api_get_configuration_value('hide_email_content');
375+
if ($allow) {
376+
$content = '';
377+
}
374378
if (!empty($senderInfo)) {
375379
$senderName = api_get_person_name(
376380
$senderInfo['firstname'],

main/install/configuration.dist.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,3 +657,6 @@
657657

658658
// Send email notification to admin when a user is created
659659
//$_configuration['send_notification_when_user_added'] = ['admins' => [1] ];
660+
661+
// Hide email content forcing using to click in a link to visit the portal to check the message
662+
//$_configuration['messages_hide_mail_content'] = false;

0 commit comments

Comments
 (0)