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.
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://wordpress.org/plugins/post-smtp/)
X-WPCF7-Content-Type: text/plain
Content-Type: text/plain; charset=UTF-8
From: Will <kc-aa@highemail.net>
Sender: kc-aa@highemail.net
To: brettg@highemailinc.com
Reply-To: will@email.com
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.
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.
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