Hello,
Below you’ll find the diagnostic test report:
Mailer: postsmtp
HostName: example.com
cURL Version: 7.29.0
OpenSSL Version: NSS/3.53.1
OS: Linux ${servername} 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
PHP: Linux 8.1.27 C
PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
WordPress: 6.4.3 en_US UTF-8
WordPress Theme: Page Builder Framework
WordPress Plugins: Post SMTP, - ACF Dropzone (Modified), Advanced Custom Fields PRO, All In One WP Security, Classic Editor, Password Generator Field for ACF, - Website Customizations Plugin, Advanced Editor Tools, - Title Document Portal, User Role Editor, User Switching, Page Builder Framework Premium Addon
WordPress wp_mail Owner: /httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args
WordPress wp_mail_from Filter(s): SiteCustomizations\Common\Controllers\Common->change_from_email_address
WordPress wp_mail_from_name Filter(s): SiteCustomizations\Common\Controllers\Common->change_from_name
Postman: 2.8.11
Postman Sender Domain (Envelope|Message): example.com | example.com
Postman Prevent Message Sender Override (Email|Name): No | No
Postman Active Transport: Default (smtp:none:none://localhost:25)
Postman Active Transport Status (Ready|Connected): No | Yes
Postman Deliveries (Success|Fail): 24 | 0
When I send a test email I do see the “on behalf of”.
Additionally, I’m using the following hook to ensure that WordPress
is not in the emails:
add_filter( 'wp_mail_from', function() {
$url_parts = parse_url( home_url() );
return sprintf( 'noreply@%s', $url_parts['host'] );
} );
add_filter( 'wp_mail_from_name', function() {
return get_bloginfo( 'name' );
} );
If I disable this plugin, the filter hooks work as expected, and I do not see the “on behalf of” described in my initial post.