Handle many email recipient. fix #53

This commit is contained in:
Sébastien Lucas 2013-07-24 20:49:24 +02:00
parent 2ba9723568
commit 826bb9e436
4 changed files with 7 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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