Best Practices for Your WordPress Contact Forms

|

|

Contact forms are essential for winning customers. Yet many of them are poorly configured and fail to deliver prospects’ requests to you…



Imagine the disaster: only 1 chance in 10 that your requests actually reach you!

Contact forms are essential for winning customers. Yet many of them are poorly configured and fail to deliver prospects’ requests to you…

What’s more, forms are supposed to save you time… And a few tips can help with that, for example by not receiving spam or by letting you reply faster.

Today, LRob helps you save time and win more prospects!

1. The sender must belong to your domain name

Do not put the customer’s email address as the sender (From).

The most common mistake when setting up a contact form is to set the customer or prospect filling out the form as the sender of the message.

It may seem logical (after all, it’s their email address), but it’s actually a very bad practice. By doing this, the email sent by your site impersonates the sender (for example: john.doe@microsoft.com). This is called mail spoofing (or identity spoofing).

Modern mail servers check that every email comes from an authenticated source. But your server obviously has no authorization to send messages on behalf of the visitor’s domain. The result: the message is often blocked, flagged as spam, or simply never delivered. In most cases, the email won’t arrive at all, and your server may even get blacklisted by the major providers (Gmail, Outlook, etc.).

The right approach

The sender of the email should always be an address tied to your own domain.
For example: site@yourdomain.com.

That way, the emails sent from your form will be authenticated and accepted by receiving servers, with no risk of being treated as spam.

2. Protect your forms with a Captcha

Don’t forget to add a Captcha to prevent spam.

A Captcha isn’t there just to annoy people: it’s a simple and effective way to filter out bots and preserve the quality of the messages you receive.

Without this protection, you’ll receive dozens or even hundreds of unsolicited messages a day, which means wasted time sorting through them, on top of missing the real requests.

To respect your users’ privacy, I recommend hCaptcha.

3. Set up SMTP on your site

Your website should have a dedicated email address with a real SMTP login for sending. As a reminder, SMTP is the standard protocol for sending email.

If your email is with Gmail or Microsoft, this will be harder to set up because you pay per mailbox and SMTP is disabled by default… But if it’s with your favorite web host, then no problem!

For WordPress, I recommend the Easy WP SMTP plugin or WPMasterToolkit.

But why bother with SMTP?

  • Sending through the default PHP mail() function is sometimes disabled to prevent accidental mail sending and thereby protect server reputation (blocked by default at LRob, allowed case by case).
  • It ensures the email is sent from a real mail server rather than from the web server, when the two are separate.
  • SMTP improves email deliverability thanks to email “headers” (meta-information) that are generally cleaner than those produced by PHP mail().
  • If there’s a problem with the form (mass spam sending, for example), SMTP lets you cap sending with an hourly quota.
  • If you run into any deliverability issue, and your host provides support for it (as LRob does), SMTP sends are much easier to trace in the logs, which simplifies diagnosis.

In short, using SMTP can only improve your deliverability and help you avoid problems. Use it!

4. Check the deliverability of your form emails

Make sure your messages are actually received by running tests with tools like mail-tester.com.

Mail-Tester lets you measure the quality of your sends.

Set the email address displayed when you visit mail-tester.com as the form’s recipient, run your test, then check the score.

A score of 9/10 or higher is recommended to ensure requests are properly received. You should also reach this score with your regular emails. If you don’t, contact your email host for more information (or come host with LRob!).

5. Run your tests in private browsing

When you test your contact forms, do it in private browsing.

If you’re logged in to your site, some features like the Captcha may be disabled, to name just one. That could skew your tests and give you a false impression of how good your form is.

6. Use a recipient address tied to your domain

Make sure the receiving address (the form’s recipient) belongs to your domain (you@yourdomain.com) and is not forwarded to another address.

If there’s a problem with your form, for example if you receive spam through it and the recipient is a major email provider (Gmail, Orange, Yahoo, etc.), you could be treated as a spammer.

Using your own domain as the form’s recipient therefore protects your online reputation and reduces the risk of blocking or mishandling of your emails by email providers.

7. Avoid confirmation emails

Sending a confirmation email may seem like a good idea, but be wary of it.

If that message includes the text submitted by the user, your form can be exploited by malicious people to send spam to any email address through your site. Even if the text isn’t included, it can still generate unsolicited emails to third parties, which is never good.

This can tarnish your domain’s reputation and expose you to penalties. It’s best to avoid this practice.

8. Use the “Reply-To” field to make replying easier

Even though you shouldn’t put the customer’s email address in the “From” field, you can still add it in the “Reply-To” field.

That way, you can reply directly to the form email: your prospect’s email address will automatically be the recipient of your reply.

A simple and effective way to save time!

9. Save requests on the site

Consider saving form submissions in the site’s database.

WordPress plugins like “Contact Form 7 Database Addon” do this for free. You can then check from time to time that you haven’t missed a request.

Going further…

If you have doubts about how your forms are configured, or if you’d like a personalized audit, feel free to contact me.

Also, advice on email deliverability is included in LRob support for all clients.

All that’s left is to wish you great success with your now top-notch forms! 💪

Categories

Web Hosting

Succeed on the web

Security, performance, simplicity.
The best tools to serve you.

Nextcloud Hosting

Nextcloud

The best open source collaboration suite

Maintenance Included

WordPress Specialist Webmaster

WordPress website management

WordPress specialist webmaster in Orléans

Entrust your site to a WordPress security and maintenance expert

Hacked WordPress Site Repair

angry-hacker-pirate

Is your WordPress site hacked?

Repair and lasting security for your WordPress site.