alpha_full/admin/publier/mailPublier.php
2026-04-06 22:58:51 +02:00

46 lines
2.4 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
include_once("mailer.v04.php");
if (empty($navAfficher)) include_once ($includePath. "/req/05-init.navMsgList.php");
if (empty($mailImgPt)) include_once ($includePath. "/req/14-init.mailMsgList.php");
$sujet='Mise à jour de ' .$_SESSION['nomSiteAff'];
$msgB="<br>";
// image de mail_business : voir comment avoir une image admin
$msgB .='<img width="30px" src="https://123ventes.com/images/logo-bleu.svg" />';
$msgB .='<br><br>';
$msgB .="Cher administrateur,";
$msgB .="<br><br>Une publication de votre site a été effectuée.";
$msgB .="<br><br><b>Gestionnaire à l'origine de la mise à jour : </b>" .$adminMail;
$msgB .="<br><u>Opérations effectuées : </u><ul>";
if ($catExport==1) $msgB .="<li>Catalogue</li>";
if ($contenuExport==1) $msgB .="<li>Contenu</li>";
if ($cssExport==1) $msgB .="<li>Styles et personalisation</li>";
if ($optionsExport==1) $msgB .="<li>Options</li>";
$msgB .="</ul>";
$msgB .='<a href="' .$_SESSION['prodServer']. '/administration">A bientôt sur ' .$_SESSION['nomSiteAff']. '</a>';
$msgB=stripslashes($msgB);
$msgB .="<br><br>---------------------------------------<br>";
if (!isset($_SESSION['intServer'])) include ($includePath. '/req/01-init.environnement.php');
include ("./mails/pdpAdmin.php");
$msgB .=stripslashes($msgPdp);
if (isset($debug[12]) && $debug[12] == '1' ) { $debugMsg .= monDebug (1, ['msgB'=> $msgB],'mailPublier.php');}
$message_business = '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>' .$sujet. '</title></head><body>' .$msgB. '<br></body></html>';
// -----------------------------------------------------
// Liste admins tableLibAdmin
// -----------------------------------------------------
if (empty($tableLibAdmin)) include ("../_include/req/15-init.adminMsgList.php");
// -----------------------------------------------------
// Envoi du mail
// -----------------------------------------------------
for ($ijk=0; $ijk<count($tableLibAdmin); $ijk++) {
if (isset($debug[12]) && $debug[12] == '1' ) { $debugMsg .= monDebug (1, ['tableLibAdmin[' .$ijk. ']' => $tableLibAdmin[$ijk] ],'');}
if ($lg=='') {$lg='FRA';}
$envMail = mailer(1, '','', 0, $_SESSION['smtpServer123'], $sujet, $message_business, $tableLibAdmin[$ijk], '', '', 0, $navMsg[9], $navMsg[22],0, '', '', $_SESSION['expediteur_mails123'], $_SESSION['from_mails123'], '', $lg);
}
?>