Index: wp-includes/pluggable.php
===================================================================
--- wp-includes/pluggable.php	(revision 5740)
+++ wp-includes/pluggable.php	(working copy)
@@ -158,6 +158,9 @@
 
 if ( !function_exists( 'wp_mail' ) ) :
 function wp_mail( $to, $subject, $message, $headers = '' ) {
+	// Compact the input, apply the filters, and extract them back out
+	extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ) );
+
 	global $phpmailer;
 
 	// (Re)create it, if it's gone missing
@@ -167,9 +170,6 @@
 		$phpmailer = new PHPMailer();
 	}
 
-	// Compact the input, apply the filters, and extract them back out
-	extract( apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers' ) ), EXTR_SKIP );
-
 	// Default headers
 	if ( empty( $headers ) ) {
 		$headers = array(

