mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Set $to_header before we fill it.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4181 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -144,6 +144,8 @@ function smtpmail($mail_to, $subject, $message, $headers = '')
|
||||
server_parse($socket, "250", __LINE__);
|
||||
|
||||
// Specify each user to send to and build to header.
|
||||
$to_header = '';
|
||||
|
||||
@reset($mail_to_array);
|
||||
while(list(, $mail_to_address) = each($mail_to_array))
|
||||
{
|
||||
@@ -154,7 +156,7 @@ function smtpmail($mail_to, $subject, $message, $headers = '')
|
||||
fputs($socket, "RCPT TO: $mail_to_address\r\n");
|
||||
server_parse($socket, "250", __LINE__);
|
||||
}
|
||||
$to_header .= (($to_header !='') ? ', ' : '') . "$mail_to_address";
|
||||
$to_header .= (($to_header != '') ? ', ' : '') . "$mail_to_address";
|
||||
}
|
||||
|
||||
// Ok now do the CC and BCC fields...
|
||||
|
Reference in New Issue
Block a user