Use email address_type and default to add_address with an option to use add_bcc.
This commit is contained in:
+9
-1
@@ -273,7 +273,15 @@
|
|||||||
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";
|
||||||
$mail->AddBCC(trim($to_row));
|
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));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$mail->AddAddress(trim($to_row));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user