I have a WooCommerce shop and it sends emails on every product order submission. I need to change the sender email address just for specific products into a custom address.
Already I am trying to achieve this using this code snippet to no avail:
add_filter('wp_mail_from', 'new_mail_from');
function new_mail_from($old) {
return 'nombre@tudominio.es';
}