From f26763b7d09ab323d9fe3e186c1dbb1382a69a4b Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Mon, 1 Jul 2024 00:08:26 +0200 Subject: [PATCH] Supprimer 'send_mail.php' --- send_mail.php | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 send_mail.php diff --git a/send_mail.php b/send_mail.php deleted file mode 100644 index ad95139..0000000 --- a/send_mail.php +++ /dev/null @@ -1,41 +0,0 @@ -'; - $subject = 'Nouveau message du Pifolio !'; - $body = "Nom: $name $surname\n\nE-mail: $email\n\nMessage:\n$message"; - - $headers = array( - 'From' => $from, - 'To' => $to, - 'Subject' => $subject - ); - - $smtp = Mail::factory('smtp', array( - 'host' => 'ssl://smtp.gmail.com', - 'port' => '465', - 'auth' => true, - 'username' => 'cailloux.p03@gmail.com', - 'password' => 'passwordxxx' // Replace with your email password - )); - - $mail = $smtp->send($to, $headers, $body); - - if (PEAR::isError($mail)) { - echo('

' . $mail->getMessage() . '

'); - } else { - echo('

Message successfully sent!

'); - } - } else { - echo('

Invalid input. Please check your details and try again.

'); - } -} -?>