aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions_mail.inc.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index e38ef44b6..0a68176e1 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -606,12 +606,6 @@ function pwg_mail($to, $args = array())
$headers = 'From: '.$args['from']."\n";
$headers.= 'Reply-To: '.$args['from']."\n";
- if (empty($to))
- {
- // Add only when to is empty
- // else mail() add 'To:' on header
- $headers.= 'To: undisclosed-recipients: ;'."\n";
- }
if (!empty($args['Cc']))
{