<?php
// Recipient email address
$to = "adamswisdom80@gmail.com";

// Email subject
$subject = "Test Email";

// Sender email address
$from = "adamsbusiness50@gmail.com";

// Logo image URL
$logo = "https://cdn.pixabay.com/photo/2016/12/27/13/10/logo-1933884_640.png";

// Email message (HTML)
$message = "
<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Test Email</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .logo {
            text-align: center;
        }
        .logo img {
            max-width: 200px;
        }
        .content {
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class='container'>
        <div class='logo'>
            <img src='{$logo}' alt='Logo'>
        </div>
        <div class='content'>
            <h1>Hello,</h1>
            <p>This is a test email sent from PHP.</p>
        </div>
    </div>
</body>
</html>
";

// Additional headers
$headers = "From: {$from}\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";

// Send email
mail($to, $subject, $message, $headers);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Email Sent</title>
</head>
<body>
    <h1>Email Sent!</h1>
</body>
</html>
