Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-8738

Send mass maill result invalid address when more than one user

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Duplicate
    • 3.0.5
    • None
    • ACP
    • 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

          Activity

            People

              Oleg Oleg [X] (Inactive)
              blueray2048 blueray2048 [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: