Handle many email recipient. fix #53

This commit is contained in:
Sébastien Lucas 2013-07-24 20:49:24 +02:00
джерело 2ba9723568
коміт 826bb9e436
4 змінених файлів з 7 додано та 4 видалено

@ -752,7 +752,7 @@ class PageCustomize extends Page
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
$content, "text",
array ()));
$content = '<input type="email" onchange="updateCookie (this);" id="email" value="' . getCurrentOption ("email") . '" />';
$content = '<input type="text" onchange="updateCookie (this);" id="email" value="' . getCurrentOption ("email") . '" />';
array_push ($this->entryArray, new Entry (localize ("customize.email"), "",
$content, "text",
array ()));

@ -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 ());

@ -55,7 +55,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}
input[type=email] {
#email {
width: 300px;
}

@ -60,7 +60,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}
input[type=email] {
#email {
width: 300px;
}