Files
cake-contact-us/config/app.example.php
T

41 lines
1.3 KiB
PHP
Raw Normal View History

2025-01-09 23:47:18 -08:00
<?php
// The following configs can be globally configured, copy the array content over to your ROOT/config
return [
'ContactUs' => [
'fields' => [
'subject' => false,
'email' => true,
'captcha' => false,
'turnstile' => false,
],
2026-11-11 02:41:55 -08:00
'clientIpHeader' => null,
'email' => [
'mailerClass' => 'CakeContactUs.ContactUsFormSubmissions',
'confirmation' => true, // true or false
'backend' => [ // array with enabled and the to/cc/bcc/ fields as strings or arrays
'enabled' => true,
2026-11-11 02:41:55 -08:00
'to' => 'contact@hipowered.dev',
'cc' => '', // email string or array of emails
'bcc' => '', // email string or array of emails
],
],
'model' => 'CakeContactUs.ContactUsFormSubmissions',
'addIdToRedirect' => true,
'redirectUrl' => [
'prefix' => 'Admin',
'plugin' => 'CakeContactUs',
'controller' => 'ContactUsFormSubmissions',
'action' => 'view',
],
],
'Turnstile' => [
'enabled' => true,
/**
* @link https://developers.cloudflare.com/turnstile/troubleshooting/testing/ for testing keys
2026-11-14 01:54:14 -08:00
*/
'siteKey' => '{SITE_KEY_GOES_HERE}', // define in app_local or an .env variable - CLOUDFLARE_TURNSTILE_SITE_KEY
'secretKey' => '{SECRET_GOES_HERE}', // define in app_local or an .env variable - CLOUDFLARE_TURNSTILE_SECRET_KEY
2025-01-09 23:47:18 -08:00
],
];