• Resolved rocs

    (@rocs)


    Dear Support Team,

    I am experiencing an issue with email delivery through WPForms Lite. Here are the details: Issue Description

    • Email Source: WPForms Lite
    • Mailer: Other SMTP (using a different hosting provider)
    • Error Message:
      The following recipients failed: [email protected]  
      Error Details: Sender address rejected: not owned by user [email protected]  

    Current Setup

    1. Form 1 (General Inquiry Form)
    • Recipient Email: [email protected]
    • Sender Name: My Company Name
    • Sender Email: [email protected]
    • Reply-To: {Field #17: Email Address} (user-provided email)
    • Email Template: {all_fields}
    1. Form 2 (Support Form)

    Problem

    • Every test submission from Form 1 fails with the above SMTP error.
    • The error suggests the SMTP server rejects [email protected] as a sender because it expects [email protected] (the authenticated account).

    Request for Assistance

    Thank you for your help!



    • This topic was modified 1 year, 1 month ago by rocs.
    • This topic was modified 1 year, 1 month ago by rocs.
Viewing 1 replies (of 1 total)
  • Thread Starter rocs

    (@rocs)

    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

    1. Go to WP Mail SMTP → Settings.
    2. Set:
    • From Email: [email protected] (must match your SMTP login!)
    • Force From Email: ✅ Enabled (critical to prevent rejection)
    WP Mail SMTP Settings

    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 Name Displayed 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]):

    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

    1. Whitelist [email protected] in SMTP:
    1. Advanced: Filter (for developers):
      Add to functions.php to 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

    1. Test Emails:
    • Use WP Mail SMTP → Email Test to verify delivery.
    1. Check Logs:
    • Enable Email Log (Pro feature) or check server logs.
    1. SPF/DKIM:
    • Ensure domain.com’s SPF record includes your SMTP server’s IP.

Viewing 1 replies (of 1 total)

The topic ‘Email Sending Failure, two different emails for different forms’ is closed to new replies.