Update "direct message" notification email to add unsubscribe link
We modified the link that previously redirected us to the "My content" page to redirect us to the new page for managing subscriptions.
This commit is contained in:
@@ -42,6 +42,7 @@ class Mailer < ApplicationMailer
|
||||
@direct_message = direct_message
|
||||
@receiver = @direct_message.receiver
|
||||
@email_to = @receiver.email
|
||||
manage_subscriptions_token(@receiver)
|
||||
|
||||
with_user(@receiver) do
|
||||
mail(to: @email_to, subject: t("mailers.direct_message_for_receiver.subject"))
|
||||
|
||||
@@ -26,9 +26,10 @@
|
||||
<tr>
|
||||
<td style="padding-left: 10px;">
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin: 0; font-style: italic; padding-bottom: 20px;">
|
||||
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe",
|
||||
account: link_to(t("mailers.direct_message_for_receiver.unsubscribe_account"),
|
||||
account_url, style: "color: #2895F1; text-decoration: none;"))) %>
|
||||
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe_text",
|
||||
notifications: link_to(t("mailers.config.notifications_link"),
|
||||
edit_subscriptions_url(token: @token),
|
||||
style: "color: #2895F1; text-decoration: none;"))) %>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user