Support » Plugin: Easy WP SMTP » Shouldn't always add Reply-To: header

  • Resolved David Anderson



    This plugin is good, thank you. However, I have one problem with it.

    It always adds a Reply-To: header, to be the same as the From: header.

    However, this is sometimes wrong. For example, I use this plugin – – as a contact form. it adds a Reply-To: header so that the sender of the contact form can indicate their own address, and I can reply directly to them. Easy SMTP then adds a second Reply-To: header, and then unfortunately my email program uses the one added by Easy SMTP.

    Easy SMTP should either not add the Reply-To header at all, or it should check to see if one already has been added.


Viewing 4 replies - 1 through 4 (of 4 total)
  • francoboy7


    +1 Should not try to modify the headers !
    Same problems occurs with contact form 7 plugin.
    I specify specific header Reply-To and From and easy smtp change them.

    I commented line on the easy smtp core files, but a fix would be good !

    Zlatko M



    Can You please share which file/line You commented.

    Thanks in advance



    It will be my pleasure if it can help someone :

    File to edit : easy_wp_smtp.php
    Location of the file : wp-content/plugins/easy-wp-smtp

    Line to edit : #19 | #21 | #22

    #19 is :
    $phpmailer->From = $ewpsOptions["from"];

    #21 is :
    $phpmailer->Sender = $phpmailer->From; //Return-Path
    #22 is :
    $phpmailer->AddReplyTo($phpmailer->From,$phpmailer->FromName); //Reply-To

    Basically what I did is to comment these line to disable them, because I already write those lines in my templates with some changing FROM and SENDER and REPLY-TO

    If you have any quesiton feel free to ask as it took me a long time to figure this one out.

    Plugin Author wpecommerce


    Hi, just released an update. It should be fixed now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shouldn't always add Reply-To: header’ is closed to new replies.