23 lines
740 B
PHP
23 lines
740 B
PHP
<?php
|
|
/**
|
|
* File: admin_contact_alert.php
|
|
* Version: 1.0
|
|
* Path: /resources/views/emails/admin_contact_alert.php
|
|
* Purpose: Notification email to admins for new contact form submissions.
|
|
*/
|
|
?>
|
|
|
|
<?php ob_start(); ?>
|
|
<p><strong>New Contact Form Submission Received</strong></p>
|
|
|
|
<p><strong>Name:</strong> <?= htmlspecialchars($first_name . ' ' . $last_name) ?><br>
|
|
<strong>Email:</strong> <?= htmlspecialchars($email) ?><br>
|
|
<strong>IP Address:</strong> <?= htmlspecialchars($ip_address) ?><br>
|
|
<strong>User Agent:</strong> <?= htmlspecialchars($user_agent) ?></p>
|
|
|
|
<p><strong>Message:</strong><br><?= nl2br(htmlspecialchars($message)) ?></p>
|
|
|
|
<?php $body = ob_get_clean(); ?>
|
|
|
|
<?php include __DIR__ . '/../layouts/email_layout.php'; ?>
|