Add the filter into functions.php of your child theme (and don't forget to change the name and email address in it):


function childtheme_replace_default_reply_to( $mail ) {
if ( ! empty(...