Forum Replies Created

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)