contact_mailContact Form 7errorerrorwarningvalidationdescriptioncontact-form-7mailMailstar_halfUncommonwarningModerate

Contact Form 7: Invalid mail (2) – Invalid ‘Return-Path’ address

Contact Form 7 builds the envelope sender from the From header. If the address is missing, malformed, or uses a domain that the server does not accept, the mail function reports an invalid Return‑Path. The error stops the message from being sent and shows a red warning in the form.

The Return‑Path must be a syntactically correct email address. Characters outside the allowed set, an empty string, or a missing @ symbol break the header. When the address does not match the site’s domain, many mail servers reject it based on SPF or DKIM policies.

Plugins that override the mail function, such as WP Mail SMTP, may inject their own Return‑Path. If the plugin supplies an empty value or a placeholder that lacks a domain, the same error appears. Server‑level restrictions can also rewrite the envelope sender to an invalid account, causing the failure.

Symptoms

[dashicons-warning]
Error message on submit
Form shows “Invalid mail (2) – Invalid ‘Return‑Path’ address” in a red box
[dashicons-email]
No email delivered
Recipient never receives the expected message
[dashicons-admin-tools]
Mail tab warning
CF7 admin screen highlights the Mail tab with the same wording

Common Causes

Malformed From address
From field contains an empty tag or a string without a valid email format
Non‑email tag in headers
Headers like Reply‑To or Cc use a tag that is not an email‑type field
Domain mismatch
From address uses a domain that differs from the site’s domain and fails SPF/DKIM checks
SMTP plugin override
WP Mail SMTP or similar plugin forces an empty or placeholder Return‑Path
Server mail restrictions
Host rewrites the envelope sender to an invalid system account
Need this fixed right now?

Don't waste your day debugging. Our experts can Fix your issues in under 2 hours.*

Success Rate

100% Guaranteed

Starting from

$35 /hour
99+

Trusted by Business Owners

“I spent 3 days trying to fix the Elementor loading loop. These guys fixed it in 20 minutes. Lifesavers!”

— Sarah J., Web Designer

Related Issues

contact_mail
Contact Form 7: REST API request failed: 503 Service Unavailable
A 503 Service Unavailable response stops Contact Form 7 from sending data...
apiREST APIerror503descriptioncontact-form-7
contact_mail
Contact Form 7: REST API request failed: 429 Too Many Requests

The form tries to send data through the WordPress REST API. The...

apiREST APIerrorerrorsecurityfirewalldescriptioncontact-form-7settingsserver_configuration
contact_mail
Contact Form 7: REST API request failed: 401 Unauthorized

The form tries to send data via the WordPress REST API. The...

apiREST APIadmin_panel_settingspermissionsdescriptioncontact-form-7lock401
contact_mail
Contact Form 7: File upload error: temporary directory missing

The error appears when Contact Form 7 cannot locate a writable temporary...

codePHPcloud_offupload erroradmin_panel_settingspermissionsdescriptiontemporary filedescriptioncontact-form-7
contact_mail
Contact Form 7: Mail (2) sending failed: PHP mail() function disabled

Contact Form 7 reports a failure for Mail (2) when the PHP...

codePHPerrorerrordescriptioncontact-form-7mailMailsettingsserver_configuration
contact_mail
Contact Form 7: Mail (2) sending failed: SSL certificate verification failed

Contact Form 7 reports a failure when trying to send the secondary...

errorerrorlocksslcodecURLdescriptioncontact-form-7