Add a pagination partial

This commit is contained in:
kbe
2025-08-18 17:15:47 +02:00
parent 7432ac7d4d
commit c5c947c5d7
4811 changed files with 410066 additions and 38 deletions

View File

@@ -0,0 +1,20 @@
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = 'your-email@example.com'; // <-- Enter your E-Mail address here.
$subject = $_POST['subject'];
$body = "From: $name <br> E-Mail: $email <br> Message: <br> $message";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From:' . $email. "\r\n";
$headers .= 'Cc:' . $email. "\r\n";
if (mail($to, "New Message from Website: $subject", $body, $headers)) {
echo json_encode(['status' => 'success', 'message' => 'Message sent successfully.']);
} else {
echo json_encode(['status' => 'error', 'message' => 'Message could not be sent. Please try again later.']);
}
?>