PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
if(isset($_POST['submit'])){
// CREATE SESSION VARIABLES TO BE USED IN FORM TO AVOID RETYPING IF ERROR OCCURS
$email = $_POST['email'];
$sub = $_POST['sub'];
$mes = $_POST['mes'];
if(isset($_POST['email'])){
$email_to = $email; // Send email to our user
$subject = $sub; // Give the email a subject
$headers = "From: sdi@spuerrkeess.lu" . "\r\n" .
"Reply-To: sdi@spuerrkeess.lu" . "\r\n" .
"Content-type: text/html; charset=UTF-8" . "\r\n" .
"X-Mailer: PHP/" . phpversion(); // Add X-Mailer header
$message = "
<html>
<head>
<title>Email</title>
<style>
.body{
background-color: #ffffff;
border-radius: 30px;
width: 350px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.container {
width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.header {
text-align: center;
font-size: 24px;
font-weight: bold;
color: #000000;
margin-bottom: 20px;
border-radius: 5px;
}
.button {
display: inline-block;
padding: 10px 20px;
border: none;
border-radius: 15px;
font-size: 57px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
cursor: pointer;
text-align: center;
}
.button:hover {
}
.message {
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
font-size: 16px;
color: #000000;
line-height: 1.4;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.message {
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
font-size: 16px;
color: #000000;
line-height: 1.4;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.logo {
text-align: center;
border-radius: 10px;
margin-bottom: 30px;
}
.logo img {
max-width: 300px;
border-radius: 10px;
}
.content {
margin-bottom: 20px;
border-radius: 10px;
}
.content p {
margin: 0 0 20px;
border-radius: 10px;
}
</style>
</head>
<body>
<div class='container'>
<div class='center'>
<div class='logo'>
<img class='center' src='logo.jpg' alt='Logo'>
</div>
</div>
<br>
<br>
<div class='logo'>
<div style='border-radius: 20px;'>
<img style='border-radius: 20px;' src='https://th.bing.com/th/id/OIP.Rgw_acLs7JeosJKBwqRtqQAAAA?w=158&h=180&c=7&r=0&o=5&dpr=1.5&pid=1.7'>
<br>
<br>
<h1 class='header'>$sub</h1>
<br>
<br>
<div>$mes</div>
<div class='logo'>
For more enquires contact:
Email: sdi@spuerrkeess.lu
</div>
</div>
</div>
<div>
</div>
</div>
</body>
</html>
";
// Send email
if(mail($email_to, $subject, $message, $headers)) {
// Email sent successfully
echo "<div class='message' style='color: green;'>Message sent successfully!</div>";
} else {
// Email sending failed
echo "<div class='message' style='color: red;'>Message could not be sent. Please try again later.</div>";
}
} else {
// Handle the case when email is not set
echo "<div class='message' style='color: red;'>Error: Email is not set.</div>";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mailing Form</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f2f2f2;
}
#container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
#logo {
text-align: center;
margin-bottom: 30px;
}
#logo img {
width: 200px;
height: auto;
}
form {
max-width: 600px;
margin: 0 auto;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"], input[type="email"], textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
textarea {
height: 150px;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div id="container">
<div id="logo">
<img src="logo.jpg" alt="Logo">
</div>
<form action="#" method="post">
<label for="subject">Subject:</label>
<input type="text" id="subject" name="sub" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="mes" required></textarea>
<button style="background-color: red; color: white; width: 100%;" type="submit" name="submit">Submit</button>
</form>
</div>
</body>
</html>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E