mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 15:24:51 -05:00
no click tracking on certain links
This commit is contained in:
parent
e50955ca40
commit
46419d479a
@ -1,4 +1,4 @@
|
|||||||
@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel
|
@model Bit.Core.Models.Mail.OrganizationUserAcceptedViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "_BasicMailLayout.text";
|
Layout = "_BasicMailLayout.text";
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
You have been invited to join the @Model.OrganizationName organization.
|
You have been invited to join the @Model.OrganizationName organization.
|
||||||
To accept this invite, click the following link:
|
To accept this invite, click the following link:
|
||||||
</p>
|
</p>
|
||||||
<p><a href="@Model.Url" target="_blank">@Model.Url</a></p>
|
<p><a href="@Model.Url" target="_blank" clicktracking=off>@Model.Url</a></p>
|
||||||
<p>
|
<p>
|
||||||
If you do not wish to join this organization, you can safely ignore
|
If you do not wish to join this organization, you can safely ignore
|
||||||
this email.
|
this email.
|
||||||
|
@ -5,4 +5,4 @@
|
|||||||
<p>
|
<p>
|
||||||
Verify this email address for your bitwarden account by clicking the following link:
|
Verify this email address for your bitwarden account by clicking the following link:
|
||||||
</p>
|
</p>
|
||||||
<p><a href="@Model.Url" target="_blank">@Model.Url</a></p>
|
<p><a href="@Model.Url" target="_blank" clicktracking=off>@Model.Url</a></p>
|
||||||
|
@ -34,6 +34,13 @@ namespace Bit.Core.Services
|
|||||||
From = new EmailAddress(_globalSettings.Mail.ReplyToEmail, _globalSettings.SiteName),
|
From = new EmailAddress(_globalSettings.Mail.ReplyToEmail, _globalSettings.SiteName),
|
||||||
HtmlContent = message.HtmlContent,
|
HtmlContent = message.HtmlContent,
|
||||||
PlainTextContent = message.TextContent,
|
PlainTextContent = message.TextContent,
|
||||||
|
TrackingSettings = new TrackingSettings
|
||||||
|
{
|
||||||
|
ClickTracking = new ClickTracking
|
||||||
|
{
|
||||||
|
EnableText = false
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
sendGridMessage.AddTos(message.ToEmails.Select(e => new EmailAddress(e)).ToList());
|
sendGridMessage.AddTos(message.ToEmails.Select(e => new EmailAddress(e)).ToList());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user