Form Settings

Here is one thing in the Form setting, that I don’t understand:

Isn’t it so, that the sender put in his own address? Why I should put in my address???

Next Question:
In the manual is written for the submitting:
Triggers the form submission. You can place a Button, Image, or other interactive element inside this component to send the form.
Ok. Done! But for functionality I need a submit-link, don’t I?

Hi @Gelbseidenraupe

You need to use your own email address as the “From” address because the mail server will only send messages that come from an address it recognises.

If we used the visitor’s email there, the message might get blocked. The usual way around this is to keep your own address as the sender, and then set the visitor’s email as the Reply-To.

That way the form email always gets delivered, and when you hit reply it goes straight back to them — this is how Forms work in Elements.

The Form handles this automatically for you. All you need to do is place a component inside the Form Submit.

Hello @ben

Like so?

And I added of course a component (Button), but unfortunately it doesn’t work. You can check this here:

http://wp1125317.server-he.de/testordner/beratung/beratung/

you don’t need to link the Button to anything.

When anything inside the Form Submit component is clicked, the Form will be submitted automatically :slight_smile:

I’m having the same problem… I’ve placed the Submit button in the Form Wrapper but it doesn’t work, nothing happens, even when the site is published and all other variables checked. Contact Farragut Homeschool Co-op Knoxville TN

Hi @ben

I tried again and again - result is negativ!

maybe it’s too easy for us? :upside_down_face:

This one looks like an incorrectly configured reCaptcha.

I inspected the browser’s error console logs and am seeing:

Error: Invalid reCAPTCHA client id:

This suggests you have reCaptcha set as the spam protection method for the Form, but the client id is empty or incorrect.

When submitting the Form the request returns an error of

Spam protection provider ‘recaptcha’ is not properly configured

Please check the Spam Protection settings on the Form component and try again :slight_smile:

In your case it seems that your server is on an old version of PHP, please check with your host which version you’re on, and ask them to upgrade to the latest PHP version (or at least PHP 8.2). Thanks :slight_smile:

1 Like

Thank you @ben , I thought

was captcha, but apparently not. I did select ReCaptcha to None, saved and re-published but still nothing happens?

Thank you @ben

Changed PHP-Version to 8.3. Now it runs.

1 Like

Your server is returning a 504 error - which is a “timeout error”. This means nothing is being returned from the request to the backend PHP code. My first guess is that the mail server you are trying to send through is not returning a response for some reason — it could be an incorrect setting such as the server name, port, username, etc. being incorrect.

Have you gone through all the steps on our Form checklist docs?

Hi @ben

This is just an additional question concerning Spam Protection, which is surely senseful. Unfortunately I couldn’t find any information about the settings in the manual.

How to setup Spam Protection correctly?

*USERNAME and PW redacted

Thanks @ben , I did, @elementsbot confirmed correct settings and as far as I know Little Oak Hosting said it’s correct on their end too… but maybe I need to check with them again. Anything jumping out at you?

Nothing happens on TSL or SSL btw.

Howdy Form Troubleshooters! :man_detective::hammer_and_wrench:

A few things jump out from this ongoing epic, and I’ll give some super-clear tips for Spam Protection and your setup:


1. Your Settings Look Pretty Good…

But let’s go through The Sacred Elements™ Form Checklist:

  • Host, Port, Encryption, Username, Password — all must be provided and correct. Double-check with your hosting provider that:
    • The SMTP host and port are right for OUTGOING mail. (Sometimes email clients and web forms want different ports/settings!)
    • mail.guardedhost.com” uses port 465 with SSL. (Some hosts want 587/TLS.)
  • From Address should match an email actually hosted on that server and with SMTP/IMAP access. Sometimes, using a different domain (e.g. sending “from” a Gmail-address on a non-Gmail host) will just… not work.
  • If you see a 504 timeout, that’s often a firewall, wrong mail host/port, or network timeout. Worth checking server logs or asking your host for any mail blocks.

2. PHP Version

  • You need at least PHP 8.1. If you’re not sure, check by visiting your published page with ?apicheck appended:
    https://your-site.com/page-with-form/?apicheck
    
    It’ll give a friendly nudge if your PHP version isn’t fancy enough.

3. Spam Protection Setup

Here’s how to set that up in the Form component:

  • Service: Choose reCAPTCHA, Simple, or (if you’re brave) None.
    • :white_check_mark: reCAPTCHA: You need to enter your Google reCAPTCHA Site Key and Secret Key. Get them here.
    • :white_check_mark: Style: “Invisible” is fine, or switch to a visible one if desired.
  • Tip: If you pick reCAPTCHA and don’t fill in the keys, you’ll get errors like “Spam protection provider ‘recaptcha’ is not properly configured.”
  • If you want to keep it simple (and make sure this isn’t the problem), set Service to None, and try again.

Here’s the relevant section from the Elements Manual - Form Component:

The “Spam Protection” panel allows you to select between “Simple” (math test), “reCAPTCHA” (Google’s service), or “None” (not recommended for production sites).


4. Route to Diagnosis Heaven™

If it’s still stuck, here’s your checklist:

  • Check your SMTP credentials again with your host. Copy-paste, don’t trust memory.
  • Set Spam Protection to None while troubleshooting.
  • Try changing your SMTP port: Some servers only allow 587 with TLS; try that if 465/SSL times out.
  • Ask your host for error logs: See if connections from your web server to their mail server are getting blocked.

5. When in Doubt…

  • Publish a super-basic test form with just your email and username settings — sometimes fancier forms fall foul of server rules.
  • If still stuck, email support@realmacsoftware.com with your support logs (Help menu → “Copy Support Logs”).

TL;DR On Spam Protection

  • For reCAPTCHA: add real Site Key and Secret Key.
  • For Simple: it’s a math test, no extra config.
  • For None: works, but you will get more spam, so only use it temporarily.

Let me know what you try — and if the problem persists, I’ll climb into your server’s crawlspace (virtually) and take a look myself. :rocket:

You’ve got this. And if not — at least your source code will be elegant and modern while you’re screaming into the void! :sweat_smile:


You can @elementsbot anytime for more troubleshooting fun and web nerdery!