You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
436 B
PHP
22 lines
436 B
PHP
<?php
|
|
|
|
return function($site, $pages, $page) {
|
|
$form = uniform('contact', [
|
|
'required' => [
|
|
'name' => '',
|
|
'_from' => 'email'
|
|
],
|
|
'actions' => [
|
|
[
|
|
'_action' => 'email',
|
|
'to' => qdated(),
|
|
'sender' => 'codesignd form <no-reply@codesignd.de>',
|
|
'subject' => 'Message from the contact form (' . $site->title() . ')',
|
|
'snippet' => 'email-templates/contact'
|
|
]
|
|
]
|
|
]);
|
|
|
|
return compact('form');
|
|
};
|