Skip to content

Commit

Permalink
make NOTIFICATION_EMAIL optional
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Mar 27, 2024
1 parent 1866068 commit 0265a69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/common/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$mysqlDatabase = Env::requireEnv('MYSQL_DATABASE');
$mysqlUser = Env::requireEnv('MYSQL_USER');
$mysqlPassword = Env::requireEnv('MYSQL_PASSWORD');
$notificationEmail = Env::requireEnv('NOTIFICATION_EMAIL');
$notificationEmail = Env::get('NOTIFICATION_EMAIL');

$emailQueueBatchSize = Env::get('EMAIL_QUEUE_BATCH_SIZE', 10);
$mailerUseFiles = Env::get('MAILER_USEFILES', false);
Expand Down Expand Up @@ -71,6 +71,7 @@
'exportInterval' => 1,
],
[
'enabled' => !empty($notificationEmail),
'class' => EmailTarget::class,
'except' => [
'yii\web\HttpException:400',
Expand Down

0 comments on commit 0265a69

Please sign in to comment.