﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
2795,Improved Mail Headers,mattyrob,anonymous,"I have written a plugin that I use on my site to improve the mail headers used by WordPress in the pluggable functions. Perhaps these changes could be added to the original code.

{{{
if ( !function_exists('wp_mail') ) :
function wp_mail($to, $subject, $message, $headers = '') {
	if( $headers == '' ) {
		$admin = get_userdata('1');
		$headers = ""MIME-Version: 1.0\n"" .
			""From: "" .  $admin->display_name . "" <"" . $admin->user_email . "">\n"" .
			""Return-Path: <"" . $admin->user_email ."">\n"" .
			""Precedence: list\nList-Id: "" . get_settings('blogname') . ""\n"" .
			""Content-Type: text/plain; charset=\"""" . get_settings('blog_charset') . ""\""\n"";
	}
	return @mail($to, $subject, $message, $headers);	
}
endif;
}}}
",defect (bug),closed,low,,General,2.0.2,trivial,wontfix,WP-Mail headers,
