diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index 8201601e..147326f3 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -268,7 +268,8 @@ sub sendmail { } } - return if (!$ecount && !$err && $opts->{mailnotification} eq 'failure'); + my $notify = $opts->{mailnotification} || 'always'; + return if (!$ecount && !$err && ($notify eq 'failure')); my $stat = ($ecount || $err) ? 'backup failed' : 'backup successful'; $stat .= ": $err" if $err;