Added MailCore2 dependency and EmailService class