[resolved] [Plugin: Contact Form 7] Setting Return-Path Mail Header (2 posts)

  1. tpohare
    Posted 6 years ago #

    I've setup a form that sends a mail to an account that auto-responds to the sender. Mail are being sent from the site but the autoresponder isn't working because it semms to repliy to the return-path header of the mail, which is set in my php.ini in Windows Server 2003.

    I've tried setting Reply-to: <[EmailAddress]> as an additional Header but it doesn't change the Return-Path. Is there a way to set the Return-Path in Contact Form 7?

  2. tpohare
    Posted 6 years ago #

    I've actually resolved this by making a change to wp-includes\pluggable.php

    I added ini_set("sendmail_from", '' . $from_email); to wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ).
    This needs to be added anywhere between where $from_email is defined and where the mail is actually processed.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.