Forms: contact forms and automatic emails
A form defines two things at once: the fields the visitor fills in and the email sent on submit. Forms also act as templates for the automatic emails of customer accounts.
Types
- CONTACT: a contact form for your site.
- REGISTER, RECOVER, VALIDATED: the emails a customer receives when signing up, recovering their password and validating their account.
- OTHER: any other form.
Creating a contact form
- Click New, choose the CONTACT type and give it a title to recognise it.
- Subject: the subject of the email you will receive.
- Mail to: your email address, where messages arrive.
- Mail from: leave
[email]so you can reply directly to the visitor. - Send reply: if set to “Yes”, the visitor gets a copy or confirmation, with its own reply subject.
- In Fields, add one per piece of data: title, type (text, textarea, email, number, date, select…) and field (
[name],[email],[phone],[message]… or custom). Finish with a field of type Submit: the send button. - In Messages, write the email body (HTML and plain text), the reply to the visitor and the success and error notices shown on the site.
- Save.
To show it on your site, create a section of type Form with this form and place it on a page or on the front page.
If emails do not arrive or end up in spam, set up your own mail server in Email (SMTP), and protect the form from spam with reCAPTCHA.