I’ve been trying for hours to get a simple contact form set up. Tried using SMTP, ditched that and been trying to use a webhook. Set up a Zap and pasted in the URL. When I try and submit the form I get the following:
{“success”:false,“error”:“API access restricted to same-server requests only”,“timestamp”:“2026-01-14T16:34:35+00:00”}
I’m using PHP 8.3 and the contact form file extension is .php. Weirdly, there’s no logs in the /rw/elements/com.realmac.corepack/api/logs folder.
One thing to note, is that I’m publishing the Elements project to a folder off of root called new-site whilst I am developing this site.
I’m not sure if this is going to help, but I was just struggling to have a simple form work and I found the root cause. In my case I was using the “Form: Clean Contact” form from the Essentials pack. I found that two name fields in the templates were not completed correctly and were causing sends to fail. Broadly speaking, I think you want to ensure each form field has a unique name. Further, if a form field doesn’t have a unique name, it will show up with a crazy string in the email that is sent using the simple email template. To avoid this, ensure each field has a name. In the case of the Essentials template, the Message field was named the same as the Email field, this cause immediate form failure. The Enquiry field was also missing a name entirely.
Can you link me to the Contact Page that you published online? If you prefer to send privately you can send me a DM here and I can take a look at it and communicate with you there.