diff --git a/OliverBooth/Controllers/ContactController.cs b/OliverBooth/Controllers/ContactController.cs index b1bb673..e821484 100644 --- a/OliverBooth/Controllers/ContactController.cs +++ b/OliverBooth/Controllers/ContactController.cs @@ -22,7 +22,7 @@ public class ContactController : Controller { _logger = logger; _configuration = configuration; - + IConfigurationSection mailConfiguration = configuration.GetSection("Mail"); _destination = mailConfiguration.GetSection("Destination"); _sender = mailConfiguration.GetSection("Sender"); @@ -61,9 +61,9 @@ public class ContactController : Controller { await sender.WriteEmail .To("Oliver Booth", _destination.Get()) - .From(name, _sender.Get()) - .ReplyTo(email) - .Subject($"[Contact via Website] {subject}") + .From("Contact via Website", _sender.Get()) + .ReplyTo(name, email) + .Subject(subject) .BodyText(message) .SendAsync(); }