public MailSender(MailSettings settings)
 {
     _settings = settings;
 }
 public MessageService(IOptions <MailSettings> mailSettings)
 {
     _settings = mailSettings.Value;
 }