first try at emailing after scan finishes