• I’d like to know how to remove the “Sender” line from the email header. The “Sender” line overwrites the “From” line when an email arrives and I don’t want that.

    In contact form 7 I have “[email] <[email protected]>” in the “From” field and that’s what I want to show in the emails. Instead, all I see is the sender line which is just “[email protected]

    Do I need to write custom headers? Or is there an easy way to turn this off?

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Actually From Address is managed through the Message tab in the Postman SMTP settings. You can disable the settings for “Prevent plugins and themes from changing this” and can override this in your plugin or theme.

    Thread Starter bgoerzen88

    (@bgoerzen88)

    Thank you for the reply. However, what I need to get rid of is the “Sender” header from the email header snippet below.

    When an email is received, all that is displayed in my email application is the email address from the “Sender” line. Other SMTP plugins don’t even have that “Sender” header. The name in the “From” line is dynamically added using WPCF7’s merge fields and I need that to show in my email applications.

    Please tell me how I can remove the “Sender” header. Thank you.

    X-Mailer: Postman SMTP 1.8.9 for WordPress (https://www.ads-software.com/plugins/post-smtp/)
    X-WPCF7-Content-Type: text/plain
    Content-Type: text/plain; charset=UTF-8
    From: Will <[email protected]>
    Sender: [email protected]
    To: [email protected]
    Reply-To: [email protected]
    Subject: KC AA – Contact Us
    Date: Mon, 21 May 2018 20:52:37 +0000

    Hi. There is a problem because “Sender” is overriden in plugin engien php files:

    // add the Sender Header, overriding what the user may have set
    $this->email->addHeader ( ‘Sender’, $options->getEnvelopeSender () );

    Please make it editable.

    Thread Starter bgoerzen88

    (@bgoerzen88)

    Sorry, was this for me or the developer? Because I don’t know what to do with this ??

    I was checking out this thread because I had a hunch it might be related to my issue where fields are not mapping correctly. I’m using SendGrid for outgoing and Gravity Forms for the notification emails.

    FWIW, I have no Sender: in my received email headers, so that may be CF7 or your outgoing provider/server, though I also have the wrong info mapped to fields in my headers.

    Thread Starter bgoerzen88

    (@bgoerzen88)

    Hmm, I have gravity forms on a different site and I still have the “Sender” header in my received emails. I’m just using the SMTP functionality from WHM/cPanel to send emails. You’re suggesting maybe a setting in there is adding the “Sender” header? If that’s the case, then why don’t I see the “Sender” header when using other SMTP plugins?

    I’m running out of ideas… anything else I could try? I really like this plugin because of the global BCC option, so I don’t really want to switch plugins.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove “Sender” header’ is closed to new replies.