small change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user