Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared Managed Cloud India
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Best lists Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting · Troubleshooting

How to Fix Contact Form 7 Not Sending Messages

Short answer

To fix Contact Form 7 not sending messages, set the Mail tab From field to an address on your own domain, add Reply-To with the visitor's email in Additional headers, and confirm the To address is correct. Then check SPF and DKIM for your domain, and switch WordPress to SMTP if messages still do not arrive. A green success message only means WordPress accepted the message, not that it reached the inbox.

Key takeaways

  • Use a From address on your own domain in the Mail tab, or Contact Form 7 shows a configuration error.
  • Put the visitor's email in Reply-To under Additional headers so replies reach the visitor.
  • A green success message only means WordPress accepted the message, not that it was delivered.
  • Google asks every sender to personal Gmail accounts for SPF or DKIM authentication.
  • WordPress sends form mail through wp_mail() and PHP mail by default, which lacks authentication.
  • Switch to SMTP when correct settings still do not deliver messages.

Why is Contact Form 7 not sending my messages?

Most missing Contact Form 7 messages are lost after the form hands them to WordPress, not inside the form itself.

Contact Form 7 builds the message and passes it to WordPress through the wp_mail() function. WordPress then asks the server to send it with PHP mail by default. If any step in that chain fails, the message never reaches an inbox.

The Setting up mail guide from Contact Form 7 explains that the Mail tab controls the message headers and body. A wrong header there can stop delivery before the server is even involved.

The same chain explains why the form can look fine while no mail arrives. A green success message only means the handoff worked.

WordPress.org's wp_mail() reference states that a true return value does not mean the user received the email. Spam filters, missing authentication and a disabled mail function can each swallow the message after that point.

Contact Form 7 is a large plugin, with more than 10 million active installations listed on its WordPress.org page as of November 2026. The current release asks for WordPress 7.1 and PHP 8.3, so check your versions first.

The same delivery chain affects other form plugins, as our guide to fixing WPForms not sending email shows.

What does the red border mean, and what does the green border mean?

A red border means the message failed at the form or server level, while a green border means WordPress accepted it for sending.

A red border appears when the form cannot send at all. Contact Form 7's FAQ names invalid mail configuration, an unavailable mail server and other server problems as possible causes. Start with the Mail tab settings, then check with your host if the settings look right.

A green border is less clear than it looks. It means the PHP mail function finished without an error, but the message may still be filtered or lost on its way to the inbox.

Contact Form 7's FAQ notes that spam filters often cause this kind of problem, so a green border points you toward delivery and spam checks, not form settings.

Is the From address the most common cause?

Yes, a From address outside your site's domain is the most common cause of missing Contact Form 7 messages.

The Setting up mail guide states that the From field must hold an email address that belongs to the same domain as the site, or you get a configuration error.

Many forms break this rule by putting the visitor's email address in From, which makes your server claim to send mail for a domain it does not control.

Receiving servers read that mismatch as spoofing. A Gmail or Yahoo address in From is the worst case, because your server has no right to send as those domains.

Contact Form 7's best practice guide gives the bottom line plainly: in the From field, use an email address that belongs to the same domain as the site.

CauseSignFirst fix
From address on another domainConfiguration error, or mail in spamSet From to an address on your domain
Wrong To addressNo error, nothing arrivesCheck the To field for typos
Missing SPF or DKIMMail in spam, mainly at GmailAdd the records at your DNS provider
PHP mail disabledRed border after submitAsk your host, or switch to SMTP
Spam filter on the receiving sideMail in the spam folderMark it as not spam and fix authentication

How do you fix the Mail tab settings step by step?

Fix the Mail tab in this order, and save after each change so the configuration validator can check your work.

  1. Open your dashboard, go to Contact, then Contact Forms, open your form and click the Mail tab.
  2. In the To field, enter the real mailbox that should receive submissions. Contact Form 7's Setting up mail guide warns that values here must use valid mailbox syntax, or you get a configuration error.
  3. In the From field, enter an address on your own domain, such as [email protected], with your site name shown before it.
  4. In the Subject field, add a subject that helps you spot new messages, such as [_site_title] New message: [your-subject].
  5. In Additional headers, add Reply-To: [your-email] so replies go to the visitor. Use the exact mail-tag of the email field in your form.
  6. In the Message body, check that every mail-tag matches a field in the Form tab. A tag with no matching field is sent as literal text, so the message arrives with gaps.
  7. Tick the “Exclude lines with blank mail-tags from output” checkbox if your form has optional fields. It keeps blank lines out of the email.
  8. Save the form and read any configuration warnings at the top of the screen. Contact Form 7 runs its configuration validator each time you save.

The Mail (2) tab holds a second template, often used as an autoresponder. Contact Form 7's docs note that Mail (2) is sent only when the primary Mail message has been sent successfully, so fix Mail first and treat Mail (2) as a separate check.

What should go in the Additional headers field?

Put one header per line in Additional headers, and the most useful one is Reply-To with the visitor's email mail-tag.

The Setting up mail guide explains that you can insert extra header fields here, such as Cc and Bcc, with one field per line. Mail-tags work in these fields, so Reply-To: [your-email] pulls the address the visitor typed.

Reply-To solves the problem that the From fix creates. Once From holds your own domain address, clicking Reply in your inbox would answer your own mailbox. A Reply-To header sends the reply to the visitor instead, while the sending address stays on your domain.

Why do messages land in spam even when the form says sent?

Messages land in spam because receiving servers distrust mail that lacks authentication, even when WordPress sent it without an error.

WordPress sends form mail through wp_mail() by default, and the WordPress Mail handbook explains that this wrapper hands the message to PHP mail, which needs a sendmail-compatible program on the server. That path adds no authentication of its own, so the message arrives with nothing to prove it came from your domain.

SiteGround's WordPress email guide makes the same point: by default WordPress uses the PHP mail() function, and you should configure SMTP for proper authentication and high deliverability. A shared hosting server also sends mail for many sites from one IP address, so other sites can drag down its reputation.

Check the spam folder first and mark a found message as not spam, but treat that as a test, not a fix.

How do SPF, DKIM and DMARC affect Contact Form 7 mail?

SPF, DKIM and DMARC tell receiving servers that your site is allowed to send mail for your domain, so they stop treating form messages as spoofed.

SPF is a DNS record that lists the servers allowed to send mail for your domain. DKIM is a signature added to each message that the receiver checks against a key in your DNS. DMARC is a DNS record that tells receivers what to do with mail that fails SPF and DKIM checks.

Google's email sender guidelines require every sender to personal Gmail accounts to set up SPF or DKIM for the sending domain. Bulk senders, around 5,000 or more messages a day to personal Gmail accounts, must use SPF and DKIM plus a DMARC record.

Google also asks senders to keep the spam rate in Postmaster Tools below 0.3%.

Contact Form 7's best practice guide recommends the same authentication methods, including SPF and DKIM, which most major mail providers support. Set the records at your DNS provider or ask your host to add them, then wait for the changes to spread before you retest.

RecordWhat it provesWhere it lives
SPFWhich servers may send for your domainDNS TXT record
DKIMEach message is signed and unchangedDNS TXT record with a public key
DMARCWhat to do with mail that fails both checksDNS TXT record at _dmarc

Our guide to setting up SPF, DKIM and DMARC for WordPress email walks through each record in detail.

When should you switch WordPress to SMTP?

Switch to SMTP when your mail settings are correct but messages still vanish, or when your host blocks or limits PHP mail.

SMTP sends WordPress mail through a real mail server with a login, instead of the server's local mail program. The WordPress Mail handbook explains that SMTP plugins override the wp_mail() defaults to use a remote mail service, which sends mail on behalf of your domain with authentication.

Set it up in this order. Install an SMTP plugin from the WordPress.org directory, then enter the host, port, encryption and login details from your mail provider. Send the plugin's test email to your own address first, then submit the live form once and check that the message arrives.

Paid sending services charge by volume, so check the cost before you pick one. Our guide to how much email marketing costs for a WordPress site shows the price ranges to expect. Keep your From address on your own domain after the switch, because SMTP does not fix a wrong From address.

How do you test whether the fix worked?

Send a real test submission from the live form, then check the inbox, the spam folder and the reply path.

  1. Fill in the live form with a different email address from the one in the To field, and submit it.
  2. Check the inbox of the To address, then check its spam or junk folder.
  3. Open the notification and click Reply to confirm the reply goes to the address you typed in the form.
  4. Check that the Mail (2) autoresponder arrives, if you use one.
  5. Submit the form a second time after any DNS change, and allow time for the change to spread.

Contact Form 7 does not store submissions, so a missing email leaves no copy behind. The Flamingo plugin, from the same author, saves each submission in the dashboard, so you can see whether the form received the message even when the email failed.

What if the form worked before and suddenly stopped?

A form that worked before usually stopped because something changed on the server, in the plugin or in the receiving mailbox.

Check the most recent change first. A host may have disabled PHP mail, changed sending limits or moved your site to a new server.

A plugin update can also raise the requirements. The current Contact Form 7 release asks for WordPress 7.1 and PHP 8.3, so an update on older hosting can break sending. A full mailbox or a changed DNS record can stop delivery just as fast.

Switching to another form plugin does not fix delivery, because every form plugin uses the same wp_mail() path. Our Contact Form 7 vs WPForms comparison shows how the two plugins differ, but the mail chain underneath is shared, so fix the From address, the authentication records and the mail transport first.

When should you contact your host?

Contact your host when the form settings pass validation but mail still fails, or when you see a red border with no configuration error.

Ask these questions in one message, so the support team can check the mail log in a single pass.

Is PHP mail enabled on your account, and are there sending limits? Does the server log show your test message, and what did the receiving server say? Can they confirm your SPF and DKIM records are correct for the sending server?

Give them the exact time of a test submission and the To address you used. A host can trace a message through its mail log, which you cannot see from the dashboard. If PHP mail is blocked on your plan, ask for the SMTP details for your mailbox.

What mistakes should you avoid?

Most Contact Form 7 mail failures come from a few avoidable setup errors.

  • Using the visitor's email address in the From field instead of an address on your domain.
  • Using a free Gmail or Yahoo address as the From address.
  • Leaving the To field set to a mailbox nobody checks.
  • Skipping the Reply-To header, so replies go to your own mailbox instead of the visitor.
  • Sending a message body with mail-tags that match no field in the form.
  • Changing five settings at once, so you cannot tell which change fixed the problem.
  • Treating a green success border as proof the message reached the inbox.

Frequently asked questions

Why does Contact Form 7 show a red border after I submit?

A red border means the message failed at the form or server level. Common causes are invalid mail settings, an unavailable mail server, or another server problem. Check the Mail tab for a configuration warning, fix the From and To fields, then ask your host to check the server mail log if the error stays.

Can I use my Gmail address in the From field?

No. The From address must belong to the same domain as your site, or Contact Form 7 shows a configuration error and receiving servers may treat the message as spoofed. Use an address on your domain, such as [email protected], and put the visitor's Gmail address in Reply-To instead.

Does Contact Form 7 save a copy of each message?

No, Contact Form 7 only sends an email and keeps no copy on your site. If the email fails, the message is gone. The Flamingo plugin from the same author saves each submission in the WordPress dashboard, so install it if you want a backup record of every form entry.

Will switching to another form plugin fix missing emails?

No. Every WordPress form plugin sends mail through the same wp_mail() function and the same server mail path, so a delivery problem follows you to the new plugin. Fix the From address, add SPF and DKIM records, and switch to SMTP if mail still does not arrive.

Why do my form emails go to spam at Gmail but not elsewhere?

Gmail checks sender authentication more strictly than many providers. Google requires every sender to personal Gmail accounts to set up SPF or DKIM, and bulk senders need both plus DMARC. Add the missing records at your DNS provider, keep your spam rate low, and use a From address on your own domain.

Sources

  1. Setting up mail Contact Form 7
  2. Best practice to set up mail Contact Form 7
  3. Contact Form 7 WordPress.org
  4. wp_mail() WordPress Developer Resources
  5. Mail WordPress Developer Resources
  6. Email sender guidelines Google
  7. How to Fix WordPress Not Sending Emails Issue SiteGround

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

WPLegible editors

Researched from the primary sources listed above and checked against our editorial rules. About the site · How we test