Added simple email handling.