use "SetClickTracking" method to disable clicktracking (#9325)
use `SetClickTracking` method instead of directly accessing the public property `TrackingSettings`. Reference #9235 Related to #6268pull/9353/head
parent
c50cd53de6
commit
3b583593fb
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue