PHP Settings

Canvas's Super Powerful Form Processor also comes with some PHP Settings which you can set in the include/form.php File to make the Settings uniform across all the Forms.

Settings

SettingDescription
$toemails[]Used for Adding Multiple Recipients for Form Emails
Example: [ch_pre type="php" class="mb-0"]$toemails[] = array( 'email' => 'sales@website.com', // Your Email Address 'name' => 'Sales Departments' // Your Name ); $toemails[] = array( 'email' => 'business@website.com', // Your Email Address 'name' => 'Business Development' // Your Name );[/ch_pre]
$formemailSender Email for Form Emails
Example: [ch_pre type="php" class="mb-0"]$fromemail = array( 'email' => 'no-reply@website.com', // Company's Email Address (preferably currently used Domain Name) 'name' => 'Company Name' // Company Name );[/ch_pre]
Make sure this is same your Host Domain or else the Mails will not work as many Hosting Provider use this parameter to block unsolicited emails
$recaptcha_secretAdd your reCaptcha Secret here
$hcaptcha_secretAdd your hCaptcha Secret here
$messageMessage Notifications to display on the Contact Form on various Form Submission states
Example: [ch_pre type="php"]$message = array( 'success' => 'We have successfully received your Message and will get Back to you as soon as possible.', 'error' => 'Email could not be sent due to some Unexpected Error. Please Try Again later.', 'error_bot' => 'Bot Detected! Form could not be processed! Please Try Again!', 'error_unexpected' => 'An unexpected error occured. Please Try Again later.', 'captcha_invalid' => 'Captcha not Validated! Please Try Again!', 'captcha_error' => 'Captcha not Submitted! Please Try Again.' );[/ch_pre]
$spam_keywordsAdd your SPAM Keywords here to block the Form Submission if any of these words are found in the Form.
Example: [ch_pre type="php"]$spam_keywords = array( 'viagra', 'cialis', 'levitra' );[/ch_pre]
$allowed_urlsAdd the Number of URLs you can allow in the Form Submissions.
Example: [ch_pre type="php"]$allowed_urls = 1;[/ch_pre]