Sender, FILTER_VALIDATE_EMAIL ) ) { $phpmailer->Sender = $phpmailer->From; } } add_action('phpmailer_init','fix_mail_return_path');