Creating an interface for error mail

Creating an interface for ErrorMail to allow older version of ErrorMail