diff --git a/src/TravelBlog/Services/MailingService.cs b/src/TravelBlog/Services/MailingService.cs index a9c63c9..a941e87 100644 --- a/src/TravelBlog/Services/MailingService.cs +++ b/src/TravelBlog/Services/MailingService.cs @@ -38,8 +38,8 @@ public async Task SendMailAsync(string address, string name, string subjec var sender = new MailboxAddress(options.SenderName, options.SenderAddress); var author = string.IsNullOrEmpty(options.AuthorAddress) ? sender : new MailboxAddress(options.AuthorName, options.AuthorAddress); var message = new MimeMessage(); - message.From.Add(author); - message.Sender = sender; + message.From.Add(sender); + message.ReplyTo.Add(author); message.To.Add(new MailboxAddress(name, address)); message.Subject = subject; message.Body = new TextPart("plain")