Version finale
This commit is contained in:
parent
75e09a736e
commit
a2b2dd9024
@ -1,11 +1,12 @@
|
||||
<?php
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\SMTP;
|
||||
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") {
|
||||
$name = $_POST["name"];
|
||||
@ -29,7 +30,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
|
||||
|
||||
$mail->isHTML(false);
|
||||
$mail->Subject = 'Contact Form Submission';
|
||||
$mail->Subject = 'Nouveau message client !';
|
||||
$mail->Body = "Name: $name\nEmail: $email\nMessage:\n$message";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user