From 1c8a47a61f6185975827320669487573b693d9a2 Mon Sep 17 00:00:00 2001 From: rub Date: Sun, 27 Sep 2009 20:04:24 +0000 Subject: merge -c3925 from branch 2.0 to trunk Bug 1176: Mail are not sent on Free sites "To: undisclosed-recipients: ;" are removed git-svn-id: http://piwigo.org/svn/trunk@3926 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_mail.inc.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include') 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'])) { -- cgit v1.2.3