Tema: Ayuda
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 11/10/2010, 11:51
nachostewie
 
Fecha de Ingreso: octubre-2010
Mensajes: 3
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Ayuda

Me da error en la linea
Código PHP:
Ver original
  1. $phpmailer->AddCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) );

Aquí tenéis el código de ese trozo.

Código PHP:
Ver original
  1. // Set custom headers
  2.     if ( !empty( $headers ) ) {
  3.         foreach( (array) $headers as $name => $content ) {
  4.             $phpmailer->AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
  5.         }
  6.  
  7.         if ( false !== stripos( $content_type, 'multipart' ) && ! empty($boundary) )
  8.             $phpmailer->AddCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) );
  9.     }
  10.  
  11.     if ( !empty( $attachments ) ) {
  12.         foreach ( $attachments as $attachment ) {
  13.             $phpmailer->AddAttachment($attachment);
  14.         }
  15.     }
  16.  
  17.     do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );