Votre cotisation est en attente de paiement
Votre statut de membre adhérent de la E59 débutera après paiement de la cotisation.
e59.fr/adhesion
Si vous souhaitez annuler votre demande d'adhésion, contactez-nous sur Discord
"
);
$altMails = array(
"rappel" => "Cotisation en attente de paiement"
);
$mail = new PHPMailer(true);
try {
// Paramètres du serveur SMTP
$mail->isSMTP(); // Utiliser SMTP
$mail->Host = 'outlook.office365.com'; // Serveur SMTP Exchange
$mail->SMTPAuth = true; // Activer l'authentification SMTP
$mail->Username = 'smtp@e59.fr'; // Nom d'utilisateur SMTP
$mail->Password = 'WTFdoto5678TFWT'; // Mot de passe SMTP
$mail->SMTPSecure = 'tls'; // Activer le cryptage TLS
$mail->Port = 587; // Port TCP pour TLS
$mail->CharSet = "UTF-8";
// Destinataires
$mail->setFrom('service-adhesions@e59.fr', 'Adhesions E59');
$mail->addAddress($_GET['target']);
// Vous pouvez ajouter d'autres destinataires en utilisant $mail->addAddress()
// $mail->addAddress('autre-destinataire@example.com');
// Vous pouvez aussi ajouter des destinataires en copie (CC) ou en copie cachée (BCC)
// $mail->addCC('cc@example.com');
// $mail->addBCC('bcc@example.com');
// Pièces jointes (si nécessaire)
// $mail->addAttachment('/path/to/file.pdf'); // Ajouter un fichier joint
// Contenu de l'email
$mail->isHTML(true); // Activer le format HTML pour l'email
$mail->Subject = $mailHeaders[$_GET['type']];
$mail->Body = $httpMails[$_GET['type']];
$mail->AltBody = $altMails[$_GET['type']];
// Envoyer l'email
$mail->send();
// Préparation de la requête de suppression
} catch (Exception $e) {
error_log("Erreur de Mailer: {$mail->ErrorInfo}");
}
header("Location: index.php");
?>