Use email address_type and default to add_address with an option to use add_bcc.
This commit is contained in:
parent
e333b28268
commit
480e34a301
|
|
@ -273,8 +273,16 @@
|
||||||
foreach ($to_array as $to_row) {
|
foreach ($to_array as $to_row) {
|
||||||
if (strlen($to_row) > 0) {
|
if (strlen($to_row) > 0) {
|
||||||
echo "Add Address: $to_row\n";
|
echo "Add Address: $to_row\n";
|
||||||
|
if ($_SESSION['email']['address_type']['text'] == 'add_address') {
|
||||||
|
$mail->AddAddress(trim($to_row));
|
||||||
|
}
|
||||||
|
elseif ($_SESSION['email']['address_type']['text'] == 'add_bcc') {
|
||||||
$mail->AddBCC(trim($to_row));
|
$mail->AddBCC(trim($to_row));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$mail->AddAddress(trim($to_row));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue