Version finale

This commit is contained in:
Moncef STITI 2024-01-19 13:22:08 +01:00
parent 75e09a736e
commit a2b2dd9024

View File

@ -1,11 +1,12 @@
<?php <?php
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
require 'PHP/fichier/php/PHP/PHPMailer/src/Exception.php';
require 'PHP/fichier/php/PHP/PHPMailer/src/PHPMailer.php';
require 'PHP/fichier/php/PHP/PHPMailer/src/SMTP.php';
require 'phpmailer/Exception.php';
require 'phpmailer/PHPMailer.php';
require 'phpmailer/SMTP.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST["name"]; $name = $_POST["name"];
@ -29,7 +30,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$mail->isHTML(false); $mail->isHTML(false);
$mail->Subject = 'Contact Form Submission'; $mail->Subject = 'Nouveau message client !';
$mail->Body = "Name: $name\nEmail: $email\nMessage:\n$message"; $mail->Body = "Name: $name\nEmail: $email\nMessage:\n$message";