updated email mechanism to *actually send email!*