diff --git a/aspnetcore/security/authentication/accconfirm/sample/WebPWrecover21/Services/EmailSender.cs b/aspnetcore/security/authentication/accconfirm/sample/WebPWrecover21/Services/EmailSender.cs index 838ede6e49..76df1edb55 100644 --- a/aspnetcore/security/authentication/accconfirm/sample/WebPWrecover21/Services/EmailSender.cs +++ b/aspnetcore/security/authentication/accconfirm/sample/WebPWrecover21/Services/EmailSender.cs @@ -34,12 +34,9 @@ namespace WebPWrecover.Services // Disable click tracking. // See https://sendgrid.com/docs/User_Guide/Settings/tracking.html - msg.TrackingSettings = new TrackingSettings - { - ClickTracking = new ClickTracking { Enable = false } - }; + msg.SetClickTracking(false, false); return client.SendEmailAsync(msg); } } -} \ No newline at end of file +}