mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use email address_type and default to add_address with an option to use add_bcc.
This commit is contained in:
@@ -273,7 +273,15 @@
|
||||
foreach ($to_array as $to_row) {
|
||||
if (strlen($to_row) > 0) {
|
||||
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