Difference between revisions of "Add a contact form"

From Imaginet FAQ
Jump to navigation Jump to search
(Set up the form)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
                                                                                  '''Adding a contact form'''
+
A contact form is a convenient way for you to allow visitors to your site to contact you. Submitted forms can be set to you as an email, or POSTed to the URL of your choice.
  
* Drag the form module to your page and select the style of the form you want.
+
=Before you begin=
[[File:Adding-form.png|thumb|left]]
+
We strongly recommend using a '''no-reply''' address @ your domain, and activating reCAPTCHA on your contact form.
  
 +
==Set up a no-reply address==
 +
Create a new alias '''no-reply''' @ your domain. Be sure to set the alias to forward to the address that you want to receive form submission.
  
 +
See our guide [[Setting up forwarding and aliases|here]] for more info.
  
 +
==Register for reCAPTCHA==
 +
* Go to https://www.google.com/recaptcha/admin/create
 +
** Add your domain
 +
** Be sure to set reCAPTCHA type to '''Challenge v2'''
 +
** Click '''SUBMIT'''
 +
* On the next page, '''copy your site key and secret key'''.
  
 +
=Add the contact form to your site=
 +
* Click the '''Form''' button
 +
* Click the form you want to add
 +
* Position the form on your site by dragging it to a suitable location.
  
 
+
=Set up the form=
 
+
* Double-click the form
 
+
* On the '''Fields''' tab, select the fields you want to appear on your form. We recommend "Name", "E-mail" and "Message".
 
+
* On the '''E-mail settings''' tab:
 
+
** Enter your email address in the '''Form will be sent to this E-mail''' field.
 
+
** Enter the no-reply address in the '''Form will be sent from this E-mail''' field.
 
+
* on the '''SMTP''' tab:
 
+
** '''tick SMTP Enable'''
 
+
** for SMTP host, enter '''smtp.imaginet.co.za'''
 
+
** for SMTP port enter '''587''' and select '''TLS'''
 
+
** for SMTP Username enter your '''full no-reply address'''
 
+
** for SMTP password enter your '''no-reply address password'''.
 
+
* On the '''Settings''' tab, enter your '''reCAPTCHA Site key''' and '''reCAPTCHA Secret Key'''
 
+
* Click '''APPLY'''
* Once you have selected the form you want and hit the apply button you should now see that the form is located on your page.
 
* You will also need to edit the email settings as well as what information you wish to have displayed on your form.
 
* To edit the form click on the '''Pencil''' and select '''Properties'''.
 

Latest revision as of 14:04, 8 May 2024

A contact form is a convenient way for you to allow visitors to your site to contact you. Submitted forms can be set to you as an email, or POSTed to the URL of your choice.

Before you begin

We strongly recommend using a no-reply address @ your domain, and activating reCAPTCHA on your contact form.

Set up a no-reply address

Create a new alias no-reply @ your domain. Be sure to set the alias to forward to the address that you want to receive form submission.

See our guide here for more info.

Register for reCAPTCHA

Add the contact form to your site

  • Click the Form button
  • Click the form you want to add
  • Position the form on your site by dragging it to a suitable location.

Set up the form

  • Double-click the form
  • On the Fields tab, select the fields you want to appear on your form. We recommend "Name", "E-mail" and "Message".
  • On the E-mail settings tab:
    • Enter your email address in the Form will be sent to this E-mail field.
    • Enter the no-reply address in the Form will be sent from this E-mail field.
  • on the SMTP tab:
    • tick SMTP Enable
    • for SMTP host, enter smtp.imaginet.co.za
    • for SMTP port enter 587 and select TLS
    • for SMTP Username enter your full no-reply address
    • for SMTP password enter your no-reply address password.
  • On the Settings tab, enter your reCAPTCHA Site key and reCAPTCHA Secret Key
  • Click APPLY