refactored emailing, to use an email class and send multiple emails from it using the same smtpclient object