diff --git a/OliverBooth/Controllers/ContactController.cs b/OliverBooth/Controllers/ContactController.cs index bf38e52..4533ad9 100644 --- a/OliverBooth/Controllers/ContactController.cs +++ b/OliverBooth/Controllers/ContactController.cs @@ -95,6 +95,7 @@ public class ContactController : Controller destination = mailSection.GetSection("Destination").Value ?? string.Empty; var client = new SmtpClient(); + client.ServerCertificateValidationCallback = (s, c, h, e) => true; client.Connect(mailServer, port, SecureSocketOptions.SslOnConnect); client.Authenticate(mailUsername, mailPassword); return client;