small change

This commit is contained in:
2025-01-21 10:23:49 +01:00
parent 251fbfcd33
commit 9b74f92a4c
57 changed files with 331 additions and 286 deletions
+4
View File
@@ -259,6 +259,7 @@ if ($tokenid != $tokensignatureon) {
require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php';
//mail to client
$mail = new PHPMailer(true);
try {
$mail->isSMTP(); // Set mailer to use SMTP
@@ -283,14 +284,17 @@ if ($tokenid != $tokensignatureon) {
$mail->Subject = $appformn . 'r' . $revnumb;
$mail->Body = $htmlContent;
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
error_log("Attempting to send email to: $emailuser with idtrf: $idtrf");
if ($adminconfirm == 'N') {
$mail->send();
error_log("Email sent successfully to: $emailuser with idtrf: $idtrf");
}
// echo 'Message has been sent';
} catch (Exception $e) {
echo "Message could not be sent CL. Mailer Error: {$mail->ErrorInfo}";
}
// mail to CS
$mail = new PHPMailer(true);
try {
$mail->isSMTP(); // Set mailer to use SMTP