Why Your Contact Form 7 Emails Aren't Sending or Showing Data
Content
Contact Form 7 is a powerful tool, but few things are more frustrating than discovering your forms aren't working correctly. Based on common community reports, the two most frequent issues are emails not being delivered at all, or emails arriving without the submitted form data, showing only placeholder tags like [your-name] instead.
Why Emails Don't Arrive (The "Success" Message But No Email)
If you see the green "Thank you for your message" success response but never receive an email, the form is submitting correctly, but the delivery is failing at the server level. This is almost never a bug within the Contact Form 7 plugin itself.
Common Causes:
- Hosting Server Mail Restrictions: Many shared hosting providers block the PHP mail() function that Contact Form 7 uses by default to prevent spam. This is a common point of failure.
- Email Routing & DNS Issues: Emails sent from your server might be flagged as spam or rejected by receiving providers (like Gmail) due to missing or incorrect SPF/DKIM DNS records for your domain.
- Plugin or Theme Conflicts: Another plugin or your theme could be interfering with the form's functionality or the mail-sending process.
How to Troubleshoot:
- Install an SMTP Plugin: The most reliable fix is to bypass your host's potentially unreliable mail() function. Configure an SMTP plugin like "WP Mail SMTP" to send all WordPress emails through a dedicated SMTP service (like your Gmail/Office 365 account, or a transactional email service like SendGrid). This almost always resolves delivery issues.
- Check for Conflicts: Temporarily switch to a default WordPress theme (like Twenty Twenty-Four) and deactivate all other plugins except Contact Form 7. Test the form. If it works, reactivate your plugins one by one to find the culprit.
- Use Flamingo: Install the Flamingo plugin. It saves all form submissions in your WordPress dashboard, providing a crucial backup to ensure you never lose a message, even if email delivery fails.
- Contact Your Host: Ask your hosting provider if they block the PHP mail() function or have specific requirements for sending mail from scripts.
Why Emails Show Placeholders Instead of Data
If you receive an email but the message body shows shortcodes like From: [your-name] instead of the actual submitted data, the issue is within your form's mail configuration.
Common Causes:
- Incorrect Mail Tag Setup: The mail template in your form's Mail tab must use the exact same mail tags that are in your form's code. For example, if your form field is
[text your-name], the email body must use[your-name]. - Theme or Plugin Alteration: Some themes or page builders that bundle Contact Form 7 might modify the default form templates, sometimes using non-standard mail tags that don't match the mail setup.
How to Troubleshoot:
- Audit Your Mail Tags: Go to your form in the WordPress admin. Click the Mail tab and carefully compare every tag in the "Message Body" section (e.g.,
[your-name],[your-email]) with the tags used in the Form tab. They must match perfectly. - Use Default Tags: For basic forms, it's often best to use the default mail tags provided in the sample form (
your-name,your-email,your-subject,your-message) to avoid typos. - Check Your Form's Code: If you created a custom form, ensure you didn't accidentally change the field names. A field defined as
[text client-name]must be referenced in the mail template as[client-name], not[your-name]. - Test a Default Form: Create a brand-new form using the default template provided by Contact Form 7. Test this form. If it works, the problem is in the configuration of your original form.
By methodically working through these steps, you can identify and resolve the vast majority of issues that prevent Contact Form 7 from working as expected.
Related Support Threads Support
-
Admin instead of client gets CF7 emailshttps://wordpress.org/support/topic/admin-instead-of-client-gets-cf7-emails/
-
Contact Form 7 + Redirect to Thank You Page: Not send parameterhttps://wordpress.org/support/topic/contact-form-7-redirect-to-thank-you-page-not-send-parameter/
-
Contact form requests are not received by emailhttps://wordpress.org/support/topic/contact-form-requests-are-not-received-by-email/
-
email sent but no “sending notification” appearinghttps://wordpress.org/support/topic/email-sent-but-no-sending-notification-appearing/
-
My contact form didnt send any emailhttps://wordpress.org/support/topic/my-contact-form-didnt-send-any-email/
-
Problem with labels and valueshttps://wordpress.org/support/topic/problem-with-labels-and-values/
-
Probleme with adresse gmailhttps://wordpress.org/support/topic/probleme-with-adresse-gmail/
-
Getting Empty Emails from Contact Use Form 7https://wordpress.org/support/topic/getting-empty-emails-from-contact-use-form-7/
-
sending mailhttps://wordpress.org/support/topic/sending-mail-2/
-
Tags in the Contact Form 7 Message Body don’t work with WP Mail SMTPhttps://wordpress.org/support/topic/tags-in-the-contact-form-7-message-body-dont-work-with-wp-mail-smtp/
-
Some Dropdown Fields Not sent value in gmailhttps://wordpress.org/support/topic/some-dropdown-fields-not-sent-value-in-gmail/
-
Form not sending anything to Klaviyohttps://wordpress.org/support/topic/form-not-sending-anything-to-klaviyo/
-
email not delivered to certain addresseshttps://wordpress.org/support/topic/email-not-delivered-to-certain-addresses/
-
CF7 Submission notification not showinghttps://wordpress.org/support/topic/cf7-submission-notification-not-showing/
-
Contact form – It does not send emailshttps://wordpress.org/support/topic/contact-form-it-does-not-send-emails/
-
new to contact 7https://wordpress.org/support/topic/new-to-contact-7/
-
Contact form missing informationhttps://wordpress.org/support/topic/contact-form-missing-information/
-
Contact form information is not included in the emailhttps://wordpress.org/support/topic/contact-form-information-is-not-included-in-the-email/
-
I have a problem being unable to see the images on the link in Contact Form 7https://wordpress.org/support/topic/i-have-a-problem-being-unable-to-see-the-images-on-the-link-in-contact-form-7/
-
Contact Form 7 emails not workinghttps://wordpress.org/support/topic/contact-form-7-emails-not-working-3/
-
When clicking on submit, no feedback messagehttps://wordpress.org/support/topic/when-clicking-on-submit-no-feedback-message/
-
Contact form layout or link issueshttps://wordpress.org/support/topic/contact-form-layout-or-link-issues/
-
[_post_author_email] not workinghttps://wordpress.org/support/topic/_post_author_email-not-working/
-
CF7 always sending e-mail to adminhttps://wordpress.org/support/topic/cf7-always-sending-e-mail-to-admin/
-
Post-related special mail-tags and The Events Calendarhttps://wordpress.org/support/topic/post-related-special-mail-tags-and-the-events-calendar/
-
Emails doesn’t sendhttps://wordpress.org/support/topic/emails-doesnt-send-2/
-
Not receiving emails after change of email addresshttps://wordpress.org/support/topic/not-receiving-emails-after-change-of-email-address/
-
Email timestamp shows UTC time instead of local site timezonehttps://wordpress.org/support/topic/email-timestamp-shows-utc-time-instead-of-local-site-timezone/
-
Message not populating name and email tagshttps://wordpress.org/support/topic/message-not-populating-name-and-email-tags/
-
Dynamic form data not populatinghttps://wordpress.org/support/topic/dynamic-form-data-not-populating/
-
Can’t send a message from my formhttps://wordpress.org/support/topic/cant-send-a-message-from-my-form/
-
Contact Form 7 + Plugin Redirect & Thank You Pagehttps://wordpress.org/support/topic/contact-form-7-plugin-redirect-thank-you-page/
-
Error in mail messegehttps://wordpress.org/support/topic/error-in-mail-messege/
-
Entry Notifications do not show the entrants email addresshttps://wordpress.org/support/topic/entry-notifications-do-not-show-the-entrants-email-address/
-
Check how mail alerts are triggered from the pluginhttps://wordpress.org/support/topic/check-how-mail-alerts-are-triggered-from-the-plugin/
-
Where is the mail server?https://wordpress.org/support/topic/where-is-the-mail-server/
-
Contact form 7, no details are provided from the senderhttps://wordpress.org/support/topic/contact-form-7-no-details-are-provided-from-the-sender/
-
contact formhttps://wordpress.org/support/topic/contact-form-341/
-
Not receiving the mailshttps://wordpress.org/support/topic/not-receiving-the-mails-2/
-
Contact Form not sending emails despite having a correct from emial.https://wordpress.org/support/topic/contact-form-not-sending-emails-despite-having-a-correct-from-emial/
-
Pictures on Email from Selected Product Not showinghttps://wordpress.org/support/topic/pictures-on-email-from-selected-product-not-showing/
-
Contact Form 7 I can’t see sender email, name, subject and messagehttps://wordpress.org/support/topic/contact-form-7-i-cant-see-sender-email-name-subject-and-message-2/
-
Sample Contact Form (CF7) don’t send mailhttps://wordpress.org/support/topic/sample-contact-form-cf7-dont-send-mail/
-
Dear Contact Form 7 Support Team,https://wordpress.org/support/topic/dear-contact-form-7-support-team/
-
Contact Form 7 Success message not showinghttps://wordpress.org/support/topic/contact-form-7-success-message-not-showing/
-
Contact form not sending emailshttps://wordpress.org/support/topic/contact-form-not-sending-emails-20/
-
contact form 7 submission tabhttps://wordpress.org/support/topic/contact-form-7-submission-tab/
-
Filled Contact Forms Are Not Being Sent To My Emailhttps://wordpress.org/support/topic/filled-contact-forms-are-not-being-sent-to-my-email/
-
Contact Form 7 – Wrong Recipient’s Addresshttps://wordpress.org/support/topic/contact-form-7-wrong-recipients-address/
-
contactform7 wrong email was configuredhttps://wordpress.org/support/topic/contactform7-wrong-email-was-configured/
-
Contact form not sendinghttps://wordpress.org/support/topic/contact-form-not-sending-23/
-
not receiving mails when user fills form.https://wordpress.org/support/topic/not-receiving-mails-when-user-fills-form/
-
Contact form no longer sends emails if acceptance and/or select are presenthttps://wordpress.org/support/topic/contact-form-no-longer-sends-emails-if-acceptance-and-or-select-are-present/
-
the forms are not sent to my mailboxhttps://wordpress.org/support/topic/the-forms-are-not-sent-to-my-mailbox/
-
Not receiving the mailshttps://wordpress.org/support/topic/not-receiving-the-mails/
-
Some form submissions going to website admin emailhttps://wordpress.org/support/topic/some-form-submissions-going-to-website-admin-email/
-
Form Setup – Gone WRonghttps://wordpress.org/support/topic/form-setup-gone-wrong/
-
Notification email doesn’t include message bodyhttps://wordpress.org/support/topic/notification-email-doesnt-include-message-body/
-
Required fields still emptyhttps://wordpress.org/support/topic/required-fields-still-empty/