Handle many email recipient. fix #53
This commit is contained in:
parent
2ba9723568
commit
826bb9e436
4 changed files with 7 additions and 4 deletions
|
@ -48,7 +48,10 @@ if (!empty ($config['cops_mail_configuration']["smtp.secure"])) $mail->SMTPSecur
|
|||
$mail->From = $config['cops_mail_configuration']["address.from"];
|
||||
$mail->FromName = $config['cops_title_default'];
|
||||
|
||||
$mail->AddAddress($emailDest);
|
||||
foreach (explode (";", $emailDest) as $emailAddress) {
|
||||
if (empty ($emailAddress)) { continue; }
|
||||
$mail->AddAddress($emailAddress);
|
||||
}
|
||||
|
||||
$mail->AddAttachment($data->getLocalPath ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue