Opens in a new tab

Independent WordPress hosting guides · Recommended host: Convesio

Start a free trial →

Why Your WordPress Contact Form Shows a Critical Error (and How to Fix It)

If submitting your contact form returns "There has been a critical error", the server probably cannot send email. Here is how to confirm it and fix it with SMTP.
By Shahzad Hasan · November 18, 2026

A visitor submits your contact form and sees: “There has been a critical error on this website.” The form, the page and your fields are often fine. The problem is the email.

Why it happens

WordPress sends mail with PHP’s mail function by default. Many hosts disable or limit it. Depending on the setup, sending either fails quietly or, as on this site, throws a fatal error that breaks the form’s response.

How to confirm it

  1. Switch the form’s email action off and submit a test. If it now succeeds, email is the cause.
  2. If your form plugin can save submissions, turn that on so no messages are lost while you fix email.

The fix: SMTP

  1. Install an SMTP plugin such as FluentSMTP or WP Mail SMTP.
  2. Connect a real sending service: your Google Workspace or Microsoft 365 account, or a transactional service such as Brevo or Amazon SES.
  3. Send the plugin’s test email.
  4. Switch the form’s email action back on and submit a test message.

Good habits

  • Send from an address on your own domain, and set the visitor’s email as reply-to.
  • Add a honeypot field or Turnstile to keep spam out.
  • Keep saving submissions as a backup even after email works.

In this article

Need hosting that scales?

Convesio runs each site in Docker containers with auto scaling and load balancing built in.
Try Convesio free →
Affiliate link: we may earn a commission at no extra cost to you.