CakeContactUs/templates/email/text/backend.php

26 lines
859 B
PHP
Raw Normal View History

2025-01-10 07:47:18 +00:00
<?php
use Cake\Core\Configure;
/**
* @var \CakeContactUs\Model\Entity\ContactUsFormSubmission $contactUsFormSubmission
*/
?>
<?= __d('cake_contact_us', "A contact us form submission was received at {0}", $contactUsFormSubmission->submitted_at) ?>,
<?= __d('cake_contact_us', 'Name: ') ?><?= h($contactUsFormSubmission->name); ?>
<?php if (Configure::readOrFail('ContactUs.fields.email') || isset($contactUsFormSubmission->email)) : ?>
<?= __d('cake_contact_us', 'Email: ') ?>
<?= $contactUsFormSubmission->email; ?>
<?php endif; ?>
<?php if (Configure::readOrFail('ContactUs.fields.subject') || isset($contactUsFormSubmission->subject)) : ?>
<?= __d('cake_contact_us', 'Subject: ') ?>
<?= h($contactUsFormSubmission->subject); ?>
<?php endif; ?>
<?= __d('cake_contact_us', 'Message: ') ?>
<?= h($contactUsFormSubmission->message); ?>