Skip to content

Commit

Permalink
fix default message
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Oct 16, 2024
1 parent bfaf3a9 commit 770ad18
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/Console/Commands/SendNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@ public function handle()
$to_email = $user->email;
$subject = config('deming.notification.mail-subject');

// Apply message model
$message = str_replace("%table%",$txt,config('deming.notification.mail-content'));
// Get message model
$message = config('deming.notification.mail-content');
if (($message==null)||(strlen($message)==0))
$message = trans('cruds.config.notifications.message_default_content');

// Replace %table% in message model
$message = str_replace("%table%",$txt,$message);

// Send mail
if (mail(
Expand Down

0 comments on commit 770ad18

Please sign in to comment.