Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add link to manage notification preferences to email notifications #256

Open
nemesifier opened this issue Feb 7, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nemesifier
Copy link
Member

nemesifier commented Feb 7, 2023

Depends on #110.

  1. We are currently missing the classic link in the footer of emails which allow users to easily access the email notification preferences.
    We must add a link in the email footer to the page which will be implemented in [feature] Add a dedicated view for managing notification preferences #110.

  2. We also want to add a way for the user to opt out of all the notifications without having to log in. There's also an email format which allows email clients to add an unsubscribe button, like the following screen shot:
    Screenshot from 2024-03-06 10-57-55
    Security Implications: the link shall work without the need of logging in, but it shall only be able to perform this action and nothing else.

In the footer we can have 2 links, one to manage notification preferences, one to turn off all emails.
In order to get the "unsubscribe" button to work we need to look into the "List-Unsuscribe-Header".

@nemesifier nemesifier added the enhancement New feature or request label Feb 7, 2023
@pandafy
Copy link
Member

pandafy commented Aug 20, 2024

In our weekly meeting, we discussed the following implementation details:

  • URL present in the footer of email

    • Takes user to a landing page which informs the user that all email notifications
      can be turned off by clicking a button.
    • Clicking on the button will make a POST request to the unsubscribe URL (user a form). Inform
      the user after successful operation.
    • The landing page should have a URL to take user to the notifications setting page.
    • Turn off the global notifications for the user
  • URL present in the email header

    • Use the same URL as above
    • Set the following headers in the email
      "List-Unsubscribe-Post": "List-Unsubscribe=One-Click"
      "List-Unsubscribe": <URL>
      

@pandafy
Copy link
Member

pandafy commented Aug 21, 2024

@Dhanus3133 we will also have to handle the case where the token is malformed/expired. We need to clearly convey that to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants