Sending emails worked with the test button in the system configuration, but the contact form did nothing.
After lots of debugging, I found the reason in components/com_contact/controllers/contact.php....