Contact Form 7 does not send email itself. It builds a message from your Mail tab settings and gives it to WordPress's wp_mail(), and everything after that depends on your server and mail setup. When submissions show success but nothing arrives, the usual causes are a From address that is not on your site's domain, unauthenticated PHP mail() that receivers reject or junk, a host that blocks mail, or a spam filter. The durable fix is to correct the Mail tab and send through authenticated SMTP.
This guide walks through the causes in order of likelihood, shows the Mail tab values that work, explains how to keep a copy of every submission so nothing is lost while you debug, and covers the DNS records that make delivery dependable.
How Contact Form 7 sends mail
When a visitor submits a form, Contact Form 7 validates the fields, checks any spam protection such as reCAPTCHA or Akismet, and then fills in the templates on the Mail tab by replacing tags like [your-name]. It passes the result to wp_mail(). If wp_mail() returns true, the form shows its success message. That return value only means the message was accepted by the local mailer, not that it reached an inbox. If it returns false, you see the generic "There was an error trying to send your message" notice.
So there are three different failures to tell apart: the form did not send (error shown), the form sent but the server dropped or rejected it (success shown, nothing arrives), and the mail was delivered but filtered (success shown, message in spam). The steps below separate them. The general WordPress picture is covered in WordPress emails not sending.
Fix the Mail tab first
Open the form, go to the Mail tab, and check these fields. Most delivery problems with the plugin come from the From field and the way the visitor's address is used.
| Field | Recommended value | Why |
|---|---|---|
| To | An inbox you control, such as hello@yourdomain | Use an address that exists and is monitored |
| From | Site Name <wordpress@yourdomain> or another address on your own domain | The From domain should match the site and your authenticated sending domain |
| Subject | Contact: [your-subject] | Clear and predictable for filters |
| Additional headers | Reply-To: [your-name] <[your-email]> | Lets you reply to the visitor without forging them as sender |
| Message body | Name, email and message tags | Keep the visitor details in the body as well |
The mistake to avoid is putting [your-email] in the From field. It looks natural, but it makes your server send mail claiming to be from the visitor's address, usually at a domain you do not control. Receivers apply their authentication checks to that domain, and the message fails SPF and DMARC. Many will reject or junk it. Use your own domain in From and the visitor in Reply-To. This is the single most common fix. Contact Form 7 also shows configuration warnings next to the Mail tab; read them, because they flag a From address that does not match the site domain.
Send through authenticated SMTP
If the Mail tab is correct and mail still disappears, the problem is the transport. PHP mail() on shared hosting is frequently throttled, blocked or unauthenticated. Configure WordPress to use an SMTP relay, either with an SMTP plugin or with a small hook. The hook below reads the credentials from constants in wp-config.php.
// wp-config.php
define('MAIL_SMTP_HOST', 'smtp.migosmtp.com');
define('MAIL_SMTP_USER', 'smtp-username');
define('MAIL_SMTP_PASS', 'smtp-password');
// must-use plugin: wp-content/mu-plugins/smtp.php
add_action('phpmailer_init', function ($phpmailer) {
$phpmailer->isSMTP();
$phpmailer->Host = MAIL_SMTP_HOST;
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 587;
$phpmailer->SMTPSecure = 'tls';
$phpmailer->Username = MAIL_SMTP_USER;
$phpmailer->Password = MAIL_SMTP_PASS;
});Use 587 with STARTTLS or 465 with 'ssl', and never port 25 from a web host. Ports are explained in choosing between ports 25, 465 and 587. If you prefer not to write code, use a maintained SMTP plugin and enter the same values. For deeper form-plugin setup, see WordPress contact form SMTP setup.
Keep a copy of every submission
While you fix delivery, you should not lose enquiries. Install a plugin that stores form submissions in the database, such as Flamingo, which is made by the same author as Contact Form 7. With it, every message is saved even if the email never arrives, and you can see which submissions were blocked as spam. This also tells you whether the form is working at all: if submissions appear in storage but not in your inbox, the failure is after hand-off. If they do not appear in storage, the form itself or the spam protection is rejecting them.
Log the mail errors
Add logging so failures from the mailer become visible. Enable WP_DEBUG_LOG and record the wp_mail_failed action.
// wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
// must-use plugin
add_action('wp_mail_failed', function ($error) {
error_log('wp_mail failed: ' . $error->get_error_message());
});Submit the form and read wp-content/debug.log. A connection error means the port is blocked or the host is wrong. An authentication error means the credentials are wrong. No error with no delivery points to filtering or authentication. Turn debugging off afterwards.
Authenticate the sending domain
Even with SMTP configured, receivers judge the message by the From domain. Publish SPF for the service that sends your mail, enable DKIM signing, and add DMARC. Check them with the SPF, DKIM and DMARC checker and read authenticating your sending domain for the setup. Then send a test and inspect the headers; reading email headers shows where to look for the authentication results.
Spam protection and bots
- reCAPTCHA, Turnstile, Akismet or a honeypot field can cause legitimate submissions to be rejected if keys are wrong or expired. Check the integration screen and the keys.
- A caching or security plugin can break the form's AJAX request. Test with caching bypassed on the form page.
- If bots flood the form, you can exhaust your sending quota and hurt your reputation. See signup bot protection.
- Do not remove validation to make the form "work". Fix the keys or the conflict instead.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Error: There was an error trying to send your message | wp_mail returned false: SMTP failure or blocked host | Enable logging; fix SMTP settings or credentials |
| Success shown, nothing arrives | Rejected or dropped after hand-off, or in spam | Fix From, use SMTP, authenticate the domain, check spam |
| Mail arrives only for some addresses | Receiver filters unauthenticated mail | Set SPF, DKIM and DMARC; test other providers |
| Mail arrives but replies go to the wrong address | Missing Reply-To header | Add Reply-To: [your-email] in Additional headers |
| SMTP Error: Could not authenticate | Wrong username or password | Re-enter; see fixing 535 errors |
| SMTP connect() failed | Port blocked or wrong TLS mode | Try 587 or 465; see connection timeouts |
| Form hangs or shows validation error | Spam protection keys or caching conflict | Check keys; bypass caching for the form page |
| Worked before a migration | New host blocks mail or lost config | Re-apply SMTP settings and re-test |
When to use this and next steps
Apply these steps whenever a Contact Form 7 form is business-critical. A form that silently loses enquiries costs more than the time to set it up properly. Once mail is flowing, add a monthly test submission and watch for bounces. If you run a store as well, see WooCommerce emails not sending, because the same transport serves both.
Make your contact form reliable Send Contact Form 7 messages through the MigoSMTP relay on 587 or 465 with authenticated delivery.
References and further reading
Frequently asked questions
Why does Contact Form 7 say success but I get no email?
The message was handed to wp_mail but then rejected, dropped or filtered. Fix the From address, use authenticated SMTP and check spam.
What should the From field be in Contact Form 7?
An address on your own domain. Put the visitor address in an additional Reply-To header, never in From.
Does Contact Form 7 need an SMTP plugin?
It needs authenticated SMTP behind wp_mail, supplied by a plugin or a phpmailer_init hook. Default PHP mail() is unreliable.
How can I avoid losing form submissions?
Store them with a plugin such as Flamingo so every message is saved even if the email fails.
What does There was an error trying to send your message mean?
wp_mail returned false, usually because of an SMTP connection or authentication error. Log wp_mail_failed to see the cause.