diff --git a/src/GZCTF/Services/Mail/MailSender.cs b/src/GZCTF/Services/Mail/MailSender.cs index dd0eeb222..bc7cf4870 100644 --- a/src/GZCTF/Services/Mail/MailSender.cs +++ b/src/GZCTF/Services/Mail/MailSender.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Net.Security; using System.Text; using GZCTF.Models.Internal; @@ -126,7 +126,7 @@ public async Task SendMailContent(MailContent content) var title = $"{content.Title} - {content.Platform}"; - var sender = string.IsNullOrWhiteSpace(_options!.SenderName) ? _options.SenderName : content.Platform; + var sender = string.IsNullOrWhiteSpace(_options!.SenderName) ? content.Platform : _options.SenderName; var from = new MailboxAddress(sender, _options.SenderAddress); var to = new MailboxAddress(content.UserName, content.Email);