Actualiser php/send_confirmation_email.php

This commit is contained in:
Moncef STITI 2024-04-17 21:51:02 +02:00
parent 9b31d2a90f
commit 79480a0123

View File

@ -19,13 +19,13 @@ if (isset($_POST['name']) && isset($_POST['email']) && isset($_POST['phone']) &&
$mail->isSMTP(); $mail->isSMTP();
$mail->Host = 'smtp.gmail.com'; $mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true; $mail->SMTPAuth = true;
$mail->Username = 'neoeat.sav@gmail.com'; $mail->Username = 'CONFIDENTIEL';
$mail->Password = 'zann afaj cnus tifc'; $mail->Password = 'CONFIDENTIEL';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
$mail->Port = 465; $mail->Port = 465;
// Destinataire // Destinataire
$mail->setFrom('neoeat.sav@gmail.com', 'Neo Eat'); $mail->setFrom('CONFIDENTIEL', 'Neo Eat');
$mail->addAddress($_POST['email'], $_POST['name']); $mail->addAddress($_POST['email'], $_POST['name']);
// Contenu du message // Contenu du message