Could you possibly enable Sender override?
-
Hello folks,
could you possibly make a change to your code in
wp-mail-bank.php, line 69
so that it only overrides the Sender if it was not provided by the caller? We are using the wp_mail with the Sender provided in $headers and WP Mail Bank overrides that value with a static Sender from its settings.The change may look like this:
Replace$phpmailer->FromName = stripslashes(htmlspecialchars_decode($data->from_name, ENT_QUOTES));
$phpmailer->From = $data->from_email;
$phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $data->from_email;With
if(!is_string($phpmailer->FromName) || $phpmailer->FromName == ”)
{
$phpmailer->FromName = stripslashes(htmlspecialchars_decode($data->from_name, ENT_QUOTES));
}if(!is_string($phpmailer->From) || $phpmailer->From == ”)
{
$phpmailer->From = $data->from_email;
}$phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $phpmailer->From;
- The topic ‘Could you possibly enable Sender override?’ is closed to new replies.