@@include('_head.html')
@@include('_navbar.html', { "classList": "center-nav transparent navbar-light", "otherClassList": "w-100 d-flex ms-auto", "otherLanguageSelect": true, "otherBtn": true, "otherBtnClassList": "btn-sm btn-primary rounded-pill", "otherBtnText": "Contact", "otherBtnLink": "@@webRoot/contact.html" })

Forms

Below you can find instructions on how to make contact or newsletter forms work.

@@include('docs/_sidebar.html', {"page": "docs-forms"})

Contact Form

Recipients

Specify recipient e-mail addresses by filling $fromEmail and $sendToEmail options in assets/php/contact.php. These email addresses will receive all form inquires/messages.

Settings

You can change email subject, fields and alert messages that are shown for success/errors in assets/php/contact.php. Pay attention to comments for explanations:

SMTP

If your email provider requires SMTP authentication, you can enable it in assets/php/contact.php. Pay attention to comments for explanations:

reCAPTCHA

You can add reCAPTCHA to your contact form in 3 easy steps:

  1. First create your reCAPTCHA v2 type site key and secret key via Google reCAPTCHA
  2. Then enable reCAPTCHA option in assets/php/contact.php and enter your secret key.
  3. Then add the reCAPTCHA field on your form's HTML code before the submit button and enter your site key inside the data-sitekey attribute.

Newsletter

After creating your own custom newsletter form through Signup Forms - Embedded Forms in Mailchimp website, replacing the newsletter form action with the one in your generated newsletter code should be enough to personalize the existing subscription forms in Sandbox.

@@include('docs/_footer.html') @@include('_page-progress.html') @@include('_scripts.html')