update dossier chekcqual

This commit is contained in:
2025-05-16 18:46:16 +02:00
parent c53c298401
commit fa44531778
405 changed files with 89887 additions and 833 deletions
+29
View File
@@ -1,4 +1,8 @@
<?php
if (function_exists('opcache_invalidate')) {
opcache_invalidate(__FILE__, true);
}
//You shall use the following exact namespaces no
//matter in whathever directory you upload your
//phpmailer files.
@@ -323,6 +327,31 @@ if ($tokenid != $tokensignatureon) {
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
// Second mail to customer service
$mail_cs = new PHPMailer(true);
try {
$mail_cs->isSMTP();
$mail_cs->Host = $mailhost;
$mail_cs->SMTPAuth = true;
$mail_cs->Username = $mailusername;
$mail_cs->Password = $mailpassword;
$mail_cs->SMTPSecure = $mailmethod;
$mail_cs->Port = $mailport;
$mail_cs->From = $fromaddresssmail;
$mail_cs->FromName = 'CIMAC Technical File System';
$mail_cs->addAddress('d.dondena@cimac.it');
$mail_cs->addAddress('c.boscaino@cimac.it');
$mail_cs->addAddress('a.boscaino@cimac.it');
$mail_cs->Subject = "Nuovo Fascicolo Tecnico Inserito: $tdnumber da $companyname";
$mail_cs->Body = "Buongiorno,\n\nla presente mail per segnalare l'inserimento di un nuovo fascicolo tecnico da parte dell'azienda " . $companyname . ". Fascicolo tecnico numero " . $tdnumber . ".";
$mail_cs->AltBody = "Buongiorno,\n\nla presente mail per segnalare l'inserimento di un nuovo fascicolo tecnico da parte dell'azienda " . $companyname . ". Fascicolo tecnico numero " . $tdnumber . ".";
if ($adminconfirm == 'N') {
$mail_cs->send();
}
} catch (Exception $e) {
echo "Customer service message could not be sent. Mailer Error: {$mail_cs->ErrorInfo}";
}
}
?>
<div class="card">