# My contact form stopped working

**URL:** <https://forum.getkirby.com/t/my-contact-form-stopped-working/32418>\
**Category:** Questions\
**Tags:** v4\
**Created:** [September 6, 2024, 10:24am UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418 "2024-09-06T10:24:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sara](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sara](https://forum.getkirby.com/u/sara)\
**Post date:** [September 6, 2024, 10:24am UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418/1 "2024-09-06T10:24:57Z")

</div>

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.  
[https://devel82.lucasdesign.ch/it/contatto](https://devel82.lucasdesign.ch/it/contatto)

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! 🙏🏻

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [September 6, 2024, 10:57am UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418/2 "2024-09-06T10:57:10Z")

</div>

What does the error message say?

---

<div class="post-metadata">

**Author:** ![sara](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@sara](https://forum.getkirby.com/u/sara)\
**Post date:** [September 6, 2024, 11:50am UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418/3 "2024-09-06T11:50:59Z")

</div>

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.

 ![Screenshot 2024-09-06 alle 13.50.05](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/d352809b6a96937782dfbe6926b5a4b63df32fd3.jpeg)  
 ![Screenshot 2024-09-06 alle 13.50.09](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/d/d471e6a81d9b767b5ebfd5c5fb80981e2267d300.jpeg)  
 ![Screenshot 2024-09-06 alle 13.50.12](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/c401c2838a89a779ade0a940a42a8c6710130e95.jpeg)

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [September 6, 2024, 12:01pm UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418/4 "2024-09-06T12:01:55Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 6, 2024, 3:18pm UTC](https://forum.getkirby.com/t/my-contact-form-stopped-working/32418/5 "2024-09-06T15:18:55Z")

</div>

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
