Automate emailing after analysis