phpmailer passwort reset

This commit is contained in:
Peter Hoppe
2023-02-08 16:09:00 +01:00
parent 9821f20dee
commit 0c5cfcbd19
15 changed files with 247 additions and 56 deletions

View File

@ -4,13 +4,13 @@ use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
//Load Composer's autoloader
require __DIR__.'../../vendor/autoload.php';
require '../../vendor/autoload.php';
//Load Composer's autoloader
require __DIR__.'./classes/lib.php';
require './classes/lib.php';
//Create an instance; passing `true` enables exceptions
$mail = new CNetcupMailer(true);
//$mail = new PHPMailer(true);
try {
@ -26,9 +26,11 @@ try {
//Attachments
//Content
$mail->Subject = 'jo subject jo XXXXX';
$mail->Body = 'XXXX This is the txt message bodyThis is the txt message body This is the txt message bodyThis is the txt message body';
$mail->Subject = 'aaaa jo subject jo XXXXX';
$mail->Body = 'aaaaaa XXXX This is the txt message bodyThis is the txt message body This is the txt message bodyThis is the txt message body';
// $mail->send();
// echo 'Message has been NOT sent';
$mail->send();
echo 'Message has been sent';
}