Fixed a bug in the email 'mail' service error handling.

I believe I found a bug in the error handling of the `mail` e-mail service. There was a `new` keyword missing and an `Exception` thrown instead of an `Error`.