diff --git a/src/PHPMailer.php b/src/PHPMailer.php index bd604301..8cddd581 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -1863,7 +1863,7 @@ class PHPMailer if (!static::isPermittedPath($path)) { return false; } - $readable = file_exists($path); + $readable = is_file($path); //If not a UNC path (expected to start with \\), check read permission, see #2069 if (strpos($path, '\\\\') !== 0) { $readable = $readable && is_readable($path);