I'm using the Post SMTP Plugin, but I manually send email via the wp_mail()
function.
The gmail client shows the correct From:, but when I switch to outlook or another email client, shows the different Sender: (the one that has been set up in the Post SMTP From: setting)
I have tried these filters, but only the wp_mail_from_name
works:
add_filter( 'wp_mail_from', create_function('', 'return sanitize_email("[email protected]"); ') );
add_filter( 'wp_mail_from_name', create_function('', 'return "Test Testov"; ') );
How can I force-change that sender?
EDIT:
Paul G., in Gmail I see this: from: Correct Name <[email protected]>
and in another email client this:
From: Correct Name
Sender: [email protected]
<---- This is wrong.