Me da error en la linea
Código PHP:
Ver original$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// Set custom headers
if ( !empty( $headers ) ) { foreach( (array) $headers as $name => $content ) { $phpmailer->AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); }
if ( false !== stripos( $content_type, 'multipart' ) && ! empty($boundary) ) $phpmailer->AddCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) ); }
if ( !empty( $attachments ) ) { foreach ( $attachments as $attachment ) {
$phpmailer->AddAttachment($attachment);
}
}
do_action_ref_array
( 'phpmailer_init', array( &$phpmailer ) );