added rudimentary exception-handling for SMTP