use "SetClickTracking" method to disable clicktracking (#9325)

use `SetClickTracking` method instead of directly accessing the public property `TrackingSettings`.

Reference #9235 
Related to #6268
pull/9353/head
Niladri Dutta 2018-10-31 09:38:24 +05:30 committed by Rick Anderson
parent c50cd53de6
commit 3b583593fb
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}
}
}
}