In /site/controllers/contact.php in the last line of the following code snippet I added
‘email’
// the data is fine, let's send the email
} else {
try {
$kirby->email([
'template' => 'email',
'from' => esc($site->email()),
'replyTo' => $data['email'],
'to' => esc($site->email()),
'subject' => esc($data['name']) . ' ' . esc($site->labelEmailSubject()->or('sent you a message from your contact form')),
'data' => [
'text' => esc($data['text']),
'sender' => esc($data['name']),
'email' => esc($data['email'])
]
]);
and
<?= $email ?>
in email.html.php and email.php
It works well! Thanks for your suggestions!