tests working with emails alsog
This commit is contained in:
@@ -6,20 +6,21 @@ use Cake\Core\Configure;
|
||||
* @var \CakeContactUs\Model\Entity\ContactUsFormSubmission $contactUsFormSubmission
|
||||
*/
|
||||
?>
|
||||
|
||||
<p>
|
||||
<?= __d('cake_contact_us', "A contact us form submission was received at {0}", $contactUsFormSubmission->submitted_at) ?>,
|
||||
</p>
|
||||
<p>
|
||||
<?= h($contactUsFormSubmission->name); ?>
|
||||
</p>
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.email') || isset($contactUsFormSubmission->email)) : ?>
|
||||
<?php if (Configure::read('ContactUs.fields.email', false) && isset($contactUsFormSubmission->email)) : ?>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Email: ') ?></strong>
|
||||
<?= $this->Html->link($contactUsFormSubmission->email, 'mailto:' . $contactUsFormSubmission->email); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (Configure::readOrFail('ContactUs.fields.subject') || isset($contactUsFormSubmission->subject)) : ?>
|
||||
<?php if (Configure::read('ContactUs.fields.subject', false) && isset($contactUsFormSubmission->subject)) : ?>
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Subject: ') ?></strong>
|
||||
<span><?= h($contactUsFormSubmission->subject); ?></span>
|
||||
@@ -28,5 +29,4 @@ use Cake\Core\Configure;
|
||||
<p>
|
||||
<strong><?= __d('cake_contact_us', 'Message: ') ?></strong>
|
||||
<?= h($contactUsFormSubmission->message); ?>
|
||||
</p>
|
||||
|
||||
</p>
|
||||
Reference in New Issue
Block a user