‘From’ email setting not working

[ad_1]

PS. It seems it only happens with the ‘New abandoned cart saved! 🛒</img>’ emails.

Hi Andris (@dinz)

Thank you for your message. So it seems like your $_SERVER['SERVER_NAME'] variable is empty therefore CartBounty is unable to get correct domain name.

To fix this you can use cartbounty_from_email filter to set the correct From email name like so:

function cartbounty_change_from_email( $html ){
      return '[email protected]';
}
add_filter( 'cartbounty_from_email', 'cartbounty_change_from_email' );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer