Ticket #7146: patch.diff
File patch.diff, 945 bytes (added by , 16 years ago) |
---|
-
pluggable.php
313 313 } else { 314 314 $content_type = trim( $content ); 315 315 } 316 } elseif ( 'cc' == strtolower($name) ) { 317 $cc = explode(",", $content); 318 } elseif ( 'bcc' == strtolower($name) ) { 319 $bcc = explode(",", $content); 316 320 } else { 317 321 // Add it to our grand headers array 318 322 $headers[trim( $name )] = trim( $content ); … … 358 362 $phpmailer->Subject = $subject; 359 363 $phpmailer->Body = $message; 360 364 365 // Add any CC and BCC recipients 366 if ( !empty($cc) ) { 367 foreach ($cc as $recipient) { 368 $phpmailer->AddCc( trim($recipient) ); 369 } 370 } 371 if ( !empty($bcc) ) { 372 foreach ($bcc as $recipient) { 373 $phpmailer->AddBcc( trim($recipient) ); 374 } 375 } 376 361 377 // Set to use PHP's mail() 362 378 $phpmailer->IsMail(); 363 379 … … 1417 1433 } 1418 1434 endif;