rocs
Forum Replies Created
-
WPForms Lite Email Configuration (for SMTP with
[email protected])To avoid the “Sender address rejected” error while sending to different recipient addresses (like
[email protected]), follow these steps: Step 1: Configure WP Mail SMTP- Go to WP Mail SMTP → Settings.
- Set:
- From Email:
[email protected](must match your SMTP login!) - Force From Email: ✅ Enabled (critical to prevent rejection)

Step 2: Form Notification Settings For Form 1 (e.g., Contact Form →
[email protected]): Field Value Why? Recipient Email[email protected]Who receives the email Email SubjectNew submission: {form_title}Dynamic subject line Sender NameYour Company NameDisplayed in inbox Sender Email[email protected]MUST match SMTP auth email!Reply-To{Field #17: Email}Replies go to the user Message{all_fields}Shows all form data TemplatePlain(or your choice) – For Form 2 (e.g., Support Form →[email protected]):- Use the same Sender Email (
[email protected]) but change Recipient Email to[email protected].
Why This Works
- SMTP Compliance: The server only allows sending from
[email protected](your authenticated address). - User Experience:
- Recipient sees emails “from”
Your Company Name <[email protected]>. - Replies go to the user’s email (via Reply-To).
- Avoids errors like:
“Sender address rejected: not owned by user [email protected]”
Alternatives
- Whitelist
[email protected]in SMTP:
- Ask your email host (e.g., Gmail, Office 365) to add
[email protected]as an alias.
- Advanced: Filter (for developers):
Add tofunctions.phpto override the “From” display (but keep SMTP auth):
add_filter('wpforms_email_headers', function($headers, $form_data) { if ($form_data['id'] == FORM_ID) { // Replace FORM_ID $headers = "From: Your Company <[email protected]>\r\n"; } return $headers; }, 10, 2);Note: Some SMTP servers may still block this.Troubleshooting
- Test Emails:
- Use WP Mail SMTP → Email Test to verify delivery.
- Check Logs:
- Enable Email Log (Pro feature) or check server logs.
- SPF/DKIM:
- Ensure
domain.com’s SPF record includes your SMTP server’s IP.