PHPMailer v6.9.3 hinzufügen – behebt Fatal Error auf Server

- PHPMailer-Quelldateien (PHPMailer.php, SMTP.php, Exception.php) zum Repository hinzugefügt
- .gitignore angepasst: vendor/phpmailer/ und vendor/autoload.php ausgenommen
- Behebt: 'Failed to open stream: No such file or directory' für autoload.php
This commit is contained in:
2026-02-13 19:51:28 +01:00
parent c4d9a1ce75
commit c79eb55e24
5 changed files with 6820 additions and 0 deletions

5
.gitignore vendored
View File

@@ -4,6 +4,11 @@ config.php
# Composer
/vendor/
!/vendor/autoload.php
!/vendor/phpmailer/
!/vendor/phpmailer/phpmailer/
!/vendor/phpmailer/phpmailer/src/
!/vendor/phpmailer/phpmailer/src/**
composer.phar
composer.lock

18
vendor/autoload.php vendored Normal file
View File

@@ -0,0 +1,18 @@
<?php
/**
* Simple Autoloader für PHPMailer
* Falls Composer nicht verfügbar ist
*/
spl_autoload_register(function ($class) {
// Nur PHPMailer-Klassen laden
if (strpos($class, 'PHPMailer\\PHPMailer\\') === 0) {
// Namespace in Dateipfad umwandeln
$classPath = str_replace('PHPMailer\\PHPMailer\\', '', $class);
$file = __DIR__ . '/vendor/phpmailer/phpmailer/src/' . $classPath . '.php';
if (file_exists($file)) {
require $file;
}
}
});

View File

@@ -0,0 +1,40 @@
<?php
/**
* PHPMailer Exception class.
* PHP Version 5.5.
*
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
*
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2020 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/
namespace PHPMailer\PHPMailer;
/**
* PHPMailer exception handler.
*
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
*/
class Exception extends \Exception
{
/**
* Prettify error message output.
*
* @return string
*/
public function errorMessage()
{
return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
}
}

File diff suppressed because it is too large Load Diff

1509
vendor/phpmailer/phpmailer/src/SMTP.php vendored Normal file

File diff suppressed because it is too large Load Diff