Details
-
Bug
-
Status: Closed (View Workflow)
-
Resolution: Duplicate
-
3.0.5
-
None
-
None
-
PHP Environment: PHP 5.2.8
Database: Sqlite 2.8.17
Description
When sending mass mail in the ACP with more than one user on windows.
It will result in invalid address error.
Index: functions_messenger.php
|
===================================================================
|
--- functions_messenger.php (revision 45)
|
+++ functions_messenger.php (working copy)
|
@@ -458,7 +458,7 @@
|
|
foreach ($address_ary as $which_ary)
|
{
|
- $$type .= (($$type != '') ? ', ' : '') . (($which_ary['name'] != '') ? mail_encode($which_ary['name'], $encode_eol) . ' <' . $which_ary['email'] . '>' : $which_ary['email']);
|
+ $$type .= (($$type != '') ? ', ' : '') . (($which_ary['name'] != '') && ((strtolower(substr(PHP_OS, 0, 3)) != 'win') || $config['smtp_delivery']) ? mail_encode($which_ary['name'], $encode_eol) . ' <' . $which_ary['email'] . '>' : $which_ary['email']);
|
}
|
}
|
|
@@ -468,7 +468,7 @@
|
// Send message ...
|
if (!$use_queue)
|
{
|
- $mail_to = ($to == '') ? 'undisclosed-recipients:;' : $to;
|
+ $mail_to = ($to == '') ? 'undisclosed-recipients' : $to;
|
$err_msg = '';
|
|
if ($config['smtp_delivery'])
|
|
Affected: phpbb-3.0.5, phpbb-3.0.6-rc1, rc2.
Attachments
Issue Links
- duplicates
-
PHPBB3-9585 Mass Mail: DSN: undisclosed-recipients:;... List:; syntax illegal for recipient addresses
- Closed