Added custom SMTPHandler for logging