1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

disable click tracking on plaintext emails

This commit is contained in:
Kyle Spearrin 2017-08-01 17:08:49 -04:00
parent 3880edfb79
commit a71f2198e9

View File

@ -36,6 +36,7 @@ namespace Bit.Core.Services
PlainTextContent = message.TextContent PlainTextContent = message.TextContent
}; };
sendGridMessage.SetClickTracking(true, false);
sendGridMessage.AddTos(message.ToEmails.Select(e => new EmailAddress(e)).ToList()); sendGridMessage.AddTos(message.ToEmails.Select(e => new EmailAddress(e)).ToList());
if(message.MetaData?.ContainsKey("SendGridTemplateId") ?? false) if(message.MetaData?.ContainsKey("SendGridTemplateId") ?? false)