public EmailService(EmailSettings settings)
 {
     _settings = settings;
 }
 public EmailService(IOptions <EmailSettings> settings)
 {
     _settings = settings.Value;
 }