Fixed deprecation warning
Proper whenever support for deploy
Use BCC when emailing