My contact form stopped working

Hello everyone. It’s probably not the right category but I developed three different sites (same code for three hotels part of the same group) with a classic contact form.

I used the Kirby Forms plugins and everything worked just fine and both the hotel and the client received the email with the data.
Last week, out of nowhere, it just stopped working and I receive an error which I’m not able to understand. Unfortunately I’m the only developer in the office and no support from a person more expert than me.
I’m using PHP 8.2 as suggested for this Kirby version (I tested also with PHP 8.1 and the result is the same).

Both the agencies which manage the hosting and the email told me they didn’t do anything.

I copied all the code to a test server, the interested page is this one.

For my tests I now used my work email address in the controller.
I can copy-paste the code if someone needs it but I thought maybe some of you can understand already from the error (which of course appears after clicking on the “Send” button).

Thank you! :pray:t2:

What does the error message say?

If you really want to see the errors you can try to compile and send the form.
Anyway those are the three first error messages.



So that suggests the mail() function is not being found. This is part of PHP and may have been disabled by your host for security reasons (although they did say no changes have been made).

If something suddenly stops working and you can be 100% sur you didn’t make any changes, then it’s usually the hosting service. It’s a downside of not having control over the server.

I think @jimbobrjames is right