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 5015

WishList Member and WP Mail SMTP

$
0
0

Replies: 0

The “Force From Email” and “Force From Name” settings don’t work when I use WP Mail SMTP with WishList Member.

WishList Member support found the reason:

The function of the WP Mail SMTP plugin has lower priority and therefore it is executed earlier than the function of WishList Member.

So since WishList Member’s function is executed last, then the “Force From Email” and “Force From Name” being fetched is the one set in WishList Member settings.

The solution is to increase the priority (higher than in WishList Member) of the wp_mail_from and wp_mail_from_name functions in the Processor.php file.

They suggested this code:

add_filter( ‘wp_mail_from’, array( $this, ‘filter_mail_from_email’ ), 99999999 );
add_filter( ‘wp_mail_from_name’, array( $this, ‘filter_mail_from_name’ ), 99999999 );

Now when I check “Force From Email” and “Force From Name” it works as intended.

Please consider patching WP Mail SMTP with this code.


Viewing all articles
Browse latest Browse all 5015

Trending Articles



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