From 826bb9e43649f34332e004abe7d41f57ef78468b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Wed, 24 Jul 2013 20:49:24 +0200 Subject: [PATCH] Handle many email recipient. fix #53 --- base.php | 2 +- sendtomail.php | 5 ++++- styles/style-default.css | 2 +- styles/style-eink.css | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/base.php b/base.php index f501adb..7810e2f 100644 --- a/base.php +++ b/base.php @@ -752,7 +752,7 @@ class PageCustomize extends Page array_push ($this->entryArray, new Entry (localize ("customize.paging"), "", $content, "text", array ())); - $content = ''; + $content = ''; array_push ($this->entryArray, new Entry (localize ("customize.email"), "", $content, "text", array ())); diff --git a/sendtomail.php b/sendtomail.php index 2977ee6..632752a 100644 --- a/sendtomail.php +++ b/sendtomail.php @@ -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 ()); diff --git a/styles/style-default.css b/styles/style-default.css index 0b24f74..434cff6 100644 --- a/styles/style-default.css +++ b/styles/style-default.css @@ -55,7 +55,7 @@ a:hover { color:#000; text-decoration: none; } margin: 20px auto; } -input[type=email] { +#email { width: 300px; } diff --git a/styles/style-eink.css b/styles/style-eink.css index efa0aa1..815b1eb 100644 --- a/styles/style-eink.css +++ b/styles/style-eink.css @@ -60,7 +60,7 @@ a:hover { color:#000; text-decoration: none; } margin: 20px auto; } -input[type=email] { +#email { width: 300px; }