Browse Source

Handle many email recipient. fix #53

master
Sébastien Lucas 10 years ago
parent
commit
826bb9e436
4 changed files with 7 additions and 4 deletions
  1. +1
    -1
      base.php
  2. +4
    -1
      sendtomail.php
  3. +1
    -1
      styles/style-default.css
  4. +1
    -1
      styles/style-eink.css

+ 1
- 1
base.php 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 ()));


+ 4
- 1
sendtomail.php 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 ());


+ 1
- 1
styles/style-default.css View File

@@ -55,7 +55,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}

input[type=email] {
#email {
width: 300px;
}



+ 1
- 1
styles/style-eink.css View File

@@ -60,7 +60,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}

input[type=email] {
#email {
width: 300px;
}



Loading…
Cancel
Save