Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5161

AddCustomHeader – SMTP user

$
0
0

Replies: 0

Ciao

with the old versions we used to add a custom header via function.php.

    add_filter('wp_mail_smtp_custom_options','my_wp_mail_smtp_custom_options');

    function my_wp_mail_smtp_custom_options($phpmailer) {	
            $phpmailer->AddCustomHeader("Qadisha-Form: " . get_option('smtp_user'));
            return $phpmailer;
    }   

I just realize that 1.2.5 returns NULL for get_option(‘smtp_user’). Could you please let me know the option that replace smtp_user?

Thanks
Antonino


Viewing all articles
Browse latest Browse all 5161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>