62 lines
2.1 KiB
PHP
62 lines
2.1 KiB
PHP
<?php
|
||
/**
|
||
* File: contact_and_newsletter.php
|
||
* Path: /resources/views/emails/contact_and_newsletter.php
|
||
* Template Name: Contact + Newsletter Confirmation
|
||
* Purpose: Unified email for users who submitted a contact message and opted into the newsletter.
|
||
* Triggered by: EmailService::sendContactAndNewsletterWelcome()
|
||
* Project: Wizdom Networks Website
|
||
*/
|
||
|
||
/** @var string $first_name */
|
||
/** @var string $subject */
|
||
/** @var string $message */
|
||
/** @var string $ip_address */
|
||
/** @var string $user_agent */
|
||
|
||
?>
|
||
|
||
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Thanks for Contacting Us & Welcome</title>
|
||
<style>
|
||
body { font-family: Arial, sans-serif; background: #f9f9f9; color: #333; padding: 30px; }
|
||
.container { background: #fff; border: 1px solid #ddd; padding: 25px; max-width: 640px; margin: auto; border-radius: 6px; }
|
||
h1 { color: #005baa; }
|
||
p, li { font-size: 1rem; line-height: 1.6; }
|
||
ul { padding-left: 1.2rem; }
|
||
.footer { font-size: 0.85em; color: #777; margin-top: 40px; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<h1>Thanks for reaching out<?= isset($first_name) ? ", $first_name" : '' ?>!</h1>
|
||
|
||
<p>We've received your message and appreciate you taking the time to contact Wizdom Networks. A member of our team will follow up shortly.</p>
|
||
|
||
<p><strong>Here’s what you submitted:</strong></p>
|
||
<ul>
|
||
<li><strong>Subject:</strong> <?= htmlspecialchars($subject) ?></li>
|
||
<li><strong>Message:</strong><br><pre style="white-space:pre-wrap;"><?= htmlspecialchars($message) ?></pre></li>
|
||
</ul>
|
||
|
||
<p>You also signed up for our newsletter — welcome aboard! We’ll occasionally send you updates, tips, and insights straight from our team.</p>
|
||
|
||
<p><strong>What to expect:</strong></p>
|
||
<ul>
|
||
<li>✅ A response to your inquiry</li>
|
||
<li>✅ Occasional email updates and insights</li>
|
||
<li>✅ You can unsubscribe at any time</li>
|
||
</ul>
|
||
|
||
<p class="footer">
|
||
IP: <?= htmlspecialchars($ip_address) ?><br>
|
||
User-Agent: <?= htmlspecialchars($user_agent) ?>
|
||
</p>
|
||
</div>
|
||
</body>
|
||
</html>
|