%%[[if edit]]%% %[if %("%id=mail_handling%" == "formspree")% ]%

Important - this mail handling type is now depreciated. Legacy forms that identify themselves with an email address are no longer supported by Formspree. To continue using Formspree and receiving emails, you must switch to using 'Formspree (default)' in the stack settings. Login to your Formspree account and generate a new form. Copy the endpoint URL into the stack settings.

%[endif]% %%[[endif]]%% %%[[if !edit]]%% %[if %("%id=mail_handling%" == "php_mail")% ]% $value) { $message .= ''.$name.':
'.$value.'

'; } %[endif]% %[if %("%id=php_mail_format%" == "json")% ]% // Send message as a JSON object $message = json_encode($theFormData); %[endif]% // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Create email headers $headers .= 'From: '.$from_email."\r\n". 'Reply-To: '.$from_email."\r\n" . 'X-Mailer: PHP/' . phpversion(); if ($bot_test) { echo ''; } else { mail($to, $subject, $message, $headers); echo ''; } } ?> %[endif]% %[if %("%id=spam_protection%" == "botpoison")% ]% %[endif]% %[if %("%id=mail_handling%" == "custom")% ]% %id=custom_handling_code% %[endif]% %[if %("%id=mail_handling%" == "formbucket")% ]%
%[endif]% %[if %("%id=mail_handling%" == "formspark")% ]% %[endif]% %[if %("%id=mail_handling%" == "formspree")% ]% %[endif]% %[if %("%id=mail_handling%" == "formspree_endpoint")% ]% %[endif]% %[if %("%id=mail_handling%" == "get")% ]% %[endif]% %[if %("%id=mail_handling%" == "mailto")% ]% %[endif]% %[if %("%id=mail_handling%" == "php_mail")% ]% %[endif]% %[if %("%id=mail_handling%" == "post")% ]% %[endif]% %[if %("%id=mail_handling%" == "print")% ]% %[endif]% %[if %("%id=mail_handling%" == "sheetmonkey")% ]% %[endif]% %[if %("%id=mail_handling%" == "test")% ]% %[endif]% %%[[endif]]%%
%slice -addTypes="com.stacks4stacks.stacks.formulate.checkbox, com.stacks4stacks.stacks.formulate.colour, com.stacks4stacks.stacks.formulate.custom, com.stacks4stacks.stacks.formulate.date, com.stacks4stacks.stacks.formulate.datetimelocal, com.stacks4stacks.stacks.formulate.email, com.stacks4stacks.stacks.formulate.fileupload, com.stacks4stacks.stacks.formulate.hidden, com.stacks4stacks.stacks.formulate.honeypot, com.stacks4stacks.stacks.formulate.number, com.stacks4stacks.stacks.formulate.pageparameters, com.stacks4stacks.stacks.formulate.password, com.stacks4stacks.stacks.formulate.range, com.stacks4stacks.stacks.formulate.radio, com.stacks4stacks.stacks.formulate.search, com.stacks4stacks.stacks.formulate.select, com.stacks4stacks.stacks.formulate.stacks, com.stacks4stacks.stacks.formulate.telephone, com.stacks4stacks.stacks.formulate.text, com.stacks4stacks.stacks.formulate.textarea, com.stacks4stacks.stacks.formulate.time, com.stacks4stacks.stacks.formulate.url" -addInit=0%
%%[[if !edit]]%% %[if %("%id=gdpr_disclaimer%" == "true")% ]%
%[endif]% %[if %("%id=mail_handling%" == "formbucket")% ]% %[if %("%id=recaptcha_key%" != "")% ]%
%[endif]% %[if %("%id=bucket_honey_pot%" != "")% ]%%[endif]% %[endif]% %[if %("%id=mail_handling%" == "formspark")% ]% %[if %("%id=formspark_success_redirect -href%" != "")% ]% %[endif]% %[if %("%id=formspark_error_redirect -href%" != "")% ]% %[endif]% %[if %("%id=formspark_feedback_page%" == "dark")% ]% %[endif]% %[if %("%id=formspark_feedback_page%" == "whitelabel")% ]% %[endif]% %[if %("%id=formspark_feedback_language%" != "")% ]% %[endif]% %[if %("%id=formspark_success_title%" != "")% ]% %[endif]% %[if %("%id=formspark_error_title%" != "")% ]% %[endif]% %[if %("%id=formspark_success_message%" != "")% ]% %[endif]% %[if %("%id=formspark_error_message%" != "")% ]% %[endif]% %[endif]% %[if %("%id=mail_handling%" == "formspree")% ]% %[if %("%id=honeypot%" == "true")% ]%%[endif]% %[if %("%id=email_format%" == "plain")% ]%%[endif]% %[if %("%id=multiple_emails%" == "true")% ]%%[endif]% %[if %("%id=thankyou_link -href%" != "")% ]%%[endif]% %[endif]% %[if %("%id=reset_btn%" == "true")% ]% %[endif]% %[if %("%id=spam_protection%" == "recaptcha2")% ]%
%[endif]% %[if %("%id=spam_protection%" == "recaptcha3")% ]% %[endif]% %[if %("%id=spam_protection%" == "recaptcha3")% ]% %[endif]% %%[[endif]]%% %%[[if !edit]]%%
%%[[endif]]%% %%[[if edit]]%% %[if %("%id=spam_protection%" == "akismet")% ]%

Some important notes about Akismet

%[endif]% %[if %("%id=spam_protection%" == "botpoison")% ]%

Some important notes about Botpoison

%[endif]% %[if %("%id=spam_protection%" == "recaptcha2")% ]%

Some important notes about reCAPTCHA v2

%[endif]% %[if %("%id=spam_protection%" == "recaptcha3")% ]%

Some important notes about reCAPTCHA v3

%[endif]% %%[[endif]]%% %%[[if !edit]]%%
This webpage uses the free demo version of %stackTitle% v%stackVersion%
%%[[endif]]%%