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:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -4,6 +4,11 @@ config.php
|
|||||||
|
|
||||||
# Composer
|
# Composer
|
||||||
/vendor/
|
/vendor/
|
||||||
|
!/vendor/autoload.php
|
||||||
|
!/vendor/phpmailer/
|
||||||
|
!/vendor/phpmailer/phpmailer/
|
||||||
|
!/vendor/phpmailer/phpmailer/src/
|
||||||
|
!/vendor/phpmailer/phpmailer/src/**
|
||||||
composer.phar
|
composer.phar
|
||||||
composer.lock
|
composer.lock
|
||||||
|
|
||||||
|
|||||||
18
vendor/autoload.php
vendored
Normal file
18
vendor/autoload.php
vendored
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
40
vendor/phpmailer/phpmailer/src/Exception.php
vendored
Normal file
40
vendor/phpmailer/phpmailer/src/Exception.php
vendored
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
5248
vendor/phpmailer/phpmailer/src/PHPMailer.php
vendored
Normal file
5248
vendor/phpmailer/phpmailer/src/PHPMailer.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1509
vendor/phpmailer/phpmailer/src/SMTP.php
vendored
Normal file
1509
vendor/phpmailer/phpmailer/src/SMTP.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user