Creating a custom version of a pluggable wp_mail function