Skip to content

Commit

Permalink
Handle many email recipient. fix #53
Browse files Browse the repository at this point in the history
  • Loading branch information
seblucas committed Jul 24, 2013
1 parent 2ba9723 commit 826bb9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function InitializeContent ()
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 ()));
Expand Down
5 changes: 4 additions & 1 deletion sendtomail.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
$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 ());

Expand Down
2 changes: 1 addition & 1 deletion styles/style-default.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}

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

Expand Down
2 changes: 1 addition & 1 deletion styles/style-eink.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ a:hover { color:#000; text-decoration: none; }
margin: 20px auto;
}

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

Expand Down

0 comments on commit 826bb9e

Please sign in to comment.