Support » Plugins » [Plugin: Contact Form 7] Setting Return-Path Mail Header

  • Resolved tpohare

    (@tpohare)


    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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Setting Return-Path Mail Header’ is closed to new replies.