diff --git a/api/src/Mail.php b/api/src/Mail.php index bdc0b3d8cc..0b9ca0f3e8 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6960,7 +6960,15 @@ class Mail } if ( $myUrl[0]!='/' && strlen($basedir) > 1 && !str_ends_with($basedir, '/')) { $basedir .= '/'; } - if ($needTempFile && empty($attachment) && !str_starts_with($myUrl, "http")) $data = file_get_contents($basedir.urldecode($myUrl)); + if ($needTempFile && empty($attachment) && !str_starts_with($myUrl, "http")) + { + try { + $data = file_get_contents($basedir.urldecode($myUrl)); + } + catch (\Throwable $e) { + _egw_log_exception($e); + } + } } if (str_starts_with($url, 'data:')) {