update to fix array count of emails (#6046)

at line 269 if this is set to ZERO all emails are bcc. this causes problems for normal recipients and scripts that depend on a TO field existing.

Setting to 1 will have it be a normal to: if its 1 email address and if its more than 1 it will do the BCC steps.
This commit is contained in:
TNSSF
2021-09-01 11:35:58 -06:00
committed by GitHub
parent 748c54025d
commit a5705406b1

View File

@@ -266,7 +266,7 @@
$to = str_replace(" ", "", $to);
$to = str_replace(";", ",", $to);
$to_array = explode(",", $to);
if (count($to_array) == 0) {
if (count($to_array) == 1) {
$mail->AddAddress($to);
}
else {