We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 331e9e1 commit ae9e26fCopy full SHA for ae9e26f
src/GZCTF/Services/Mail/MailSender.cs
@@ -30,7 +30,8 @@ public MailSender(
30
_options = options.Value;
31
_cancellationToken = _cancellationTokenSource.Token;
32
33
- if (_options is not { SendMailAddress: not null, Smtp.Host: not null, Smtp.Port: not null })
+ if (string.IsNullOrWhiteSpace(_options.SendMailAddress) ||
34
+ string.IsNullOrWhiteSpace(_options.Smtp?.Host) || _options.Smtp.Port is not null)
35
return;
36
37
_smtpClient = new();
0 commit comments