finalized the email handler to use smtp. using pony caused conflicts