Added code to send via email