Handle many email recipient. fix #53
This commit is contained in:
parent
2ba9723568
commit
826bb9e436
2
base.php
2
base.php
|
@ -752,7 +752,7 @@ class PageCustomize extends Page
|
||||||
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
|
array_push ($this->entryArray, new Entry (localize ("customize.paging"), "",
|
||||||
$content, "text",
|
$content, "text",
|
||||||
array ()));
|
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"), "",
|
array_push ($this->entryArray, new Entry (localize ("customize.email"), "",
|
||||||
$content, "text",
|
$content, "text",
|
||||||
array ()));
|
array ()));
|
||||||
|
|
|
@ -48,7 +48,10 @@ if (!empty ($config['cops_mail_configuration']["smtp.secure"])) $mail->SMTPSecur
|
||||||
$mail->From = $config['cops_mail_configuration']["address.from"];
|
$mail->From = $config['cops_mail_configuration']["address.from"];
|
||||||
$mail->FromName = $config['cops_title_default'];
|
$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 ());
|
$mail->AddAttachment($data->getLocalPath ());
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ a:hover { color:#000; text-decoration: none; }
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=email] {
|
#email {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ a:hover { color:#000; text-decoration: none; }
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=email] {
|
#email {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue