put the full wp_mail function in
- maved the logging in to the main class
- added built in conditionals for dev, live, local