Stole the innards of existing wp_mail.

Placed the existing wp_mail code into the plugin.