Preskoči na sadržaj
BeoHosting
BeoHosting

8 min

WordPress Contact Form

Contact Form 7, WPForms, and spam protection.

BeoHosting Tim

10+ godina iskustva — Stručnjaci za web hosting i infrastrukturu

Poslednje ažurirano:

Every WordPress site needs a contact form. This guide compares the three most popular plugins (Contact Form 7, WPForms, Gravity Forms), explains how to set up reCAPTCHA spam protection, configure SMTP so emails actually arrive, and embed the form on your site.

WordPress Contact Form

1

Pick a contact form plugin

WordPress has several great form plugins. Top three: Contact Form 7 (free, most popular with 5M+ active installs), WPForms Lite (free, drag-and-drop builder, beginner-friendly) and Gravity Forms (premium, advanced features for complex forms). For most sites we recommend WPForms Lite or Contact Form 7.

2

Install the plugin from the WordPress panel

Log into the WordPress admin (yoursite.com/wp-admin). Go to Plugins → Add New and search for the chosen plugin name. Click "Install Now", then "Activate". The plugin adds a new menu in the sidebar.

3

Create a new contact form

For WPForms: WPForms → Add New, pick "Simple Contact Form" template. For Contact Form 7: Contact → Add New, the default form is enough for most cases. Customize the form name and fields.

4

Configure form fields

Add the fields the form needs: text fields for name and surname, email field with validation, textarea for the message, dropdown for category, checkbox for privacy policy consent (mandatory for GDPR). Mark required fields with an asterisk (*) and add placeholder text.

5

Set up email notifications

Configure where submitted forms are sent. In plugin settings, enter the email address that should receive messages (typically info@yourdomain.com). Set the email subject (e.g. "New contact from yoursite.com"). Add a confirmation email to the visitor.

6

Enable spam protection (reCAPTCHA)

Sign up at google.com/recaptcha and create a new site. Pick reCAPTCHA v3 (invisible to visitors). Copy Site Key and Secret Key. In WordPress, go to form-plugin settings and enter both keys in the reCAPTCHA section. This blocks 99% of spam without bothering real visitors.

7

Test the form before publishing

Add the form to a page using shortcode or Gutenberg block. Open the page in the browser and submit test data. Check that the email arrives at the configured address, success messages display, validation works on required fields and reCAPTCHA blocks bot submissions. Also test on a mobile device.

Spremni da pokrenete svoj sajt?

SSL zaštita
Brzina
24/7 podrška

Pridružite se 4.000+ zadovoljnih korisnika. Besplatna migracija i 15 dana garancije povrata novca.

15 dana garancija povrata novca
Besplatna migracija15 dana garancija24/7 podrška

FAQ

Odgovori na najčešća pitanja o našim uslugama.

For beginners we recommend WPForms Lite with its drag-and-drop editor and ready-made templates. For advanced users who want full control, Contact Form 7 is an excellent choice. Both plugins are completely free, regularly updated and have millions of active users. WPForms is easier to use; CF7 offers more flexibility.

The most effective protection is Google reCAPTCHA v3, which works in the background without bothering visitors. Additionally, you can use honeypot fields (hidden fields only bots fill), Akismet anti-spam plugin, CAPTCHA questions or message-per-IP limits. The combination reCAPTCHA + honeypot blocks 99.9% of spam.

The most common reason is that WordPress uses the PHP mail() function, which often lands in spam or fails to deliver. The fix is installing an SMTP plugin (WP Mail SMTP) that sends emails through a proper SMTP server. On BeoHosting, SMTP settings are: server mail.yourdomain.com, port 465 (SSL), username info@yourdomain.com. Also check the spam folder.

In WPForms: open the form in the editor and drag new fields from the left column (text, email, dropdown, checkbox, file upload, date). In Contact Form 7: add HTML tags to the form template using the tag generator. The most common extra fields: phone, company name, query-type dropdown, newsletter checkbox and file upload for documents.

Quality form plugins have minimal impact on site speed — they typically add 20-50 KB of CSS/JS. Problems arise when the plugin loads scripts on every page instead of only the page with the form. WPForms and CF7 are optimized for speed. Avoid loading unnecessary styles — in WPForms settings turn off "Load Assets Globally".

Naše garancije za vaš mir

Zaštićeni ste sa svake strane

15 dana garancije

Vraćamo novac bez pitanja u prvih 15 dana.

Besplatna migracija

Mi prebacimo vaš sajt bez prekida — vi ništa ne radite.

24/7 podrška

Naši stručnjaci su tu 24/7 kroz tikete i live chat.