private EmailCredential GetCredentialFromConfig()
        {
            EmailCredential credential = new EmailCredential
            {
                Email = ConfigurationManager.AppSettings["email.credentials.email"],
                Host = ConfigurationManager.AppSettings["email.credentials.host"],
                Password = ConfigurationManager.AppSettings["email.credentials.pass"],
                Port = int.Parse(ConfigurationManager.AppSettings["email.credentials.port"]),
                UseSsl = bool.Parse(ConfigurationManager.AppSettings["email.credentials.ssl"]),
                Username = ConfigurationManager.AppSettings["email.credentials.user"],
                OwnerEmail = ConfigurationManager.AppSettings["email.credentials.owner"]
            };

            return credential;
        }
 public OrderHandler(EmailCredential credential)
 {
     _credential = credential;
 }