Plz help - Contact form

, ,

Hi!

We have a Kirby-built site with a contact form. It doesn’t work for the moment, and I can’t find any reason why. I am not a programmer and am new to my role at the company, and this problem landed on my table. I have reached out to both our IT, digital developer, and support, but no one seems to be able to see the problem.

If you have a moment, I would appreciate your help; otherwise, I’m unsure where to turn otherwise.

Could you give more information on how this has been setup?

Are you using the built in form handling or the Uniform plugin? What version fo Kirby are you running? What does the code you are trying for the form and the form handler look like?

Hi, thank you! Here is some info:

Form handling: Built-in Kirby (no Uniform), Kirby version: 4.0.2.

Form view: site/snippets/form-overlay.php (overlay #contact-form, honeypot, subject/name/email/text fields, posts to $page->url())

Form handler: site/controllers/site.php (validates fields, checks honeypot, picks recipient, sends mail with $kirby->email()).

Email templates: site/templates/emails/email.php (text) och email.html.php (HTML).

SMTP config: in site/config/config.php (Office 365).

Do you want me send the code for anything?

Yes, please post the code. Are you trying this from a local webserver or a real domain? Has the domains DNS records been properly configured to use Office 365 for email?

I would also suggest using Mailhog to test the emails locally. Email testing | Kirby CMS