Email Errors.

Introduced functions to get errors from the PHPMailer class.