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

[FEAT]: Newsletter Unsubscription Feature Implementation #687

Open
odero-lavenda opened this issue Feb 28, 2025 · 0 comments
Open

[FEAT]: Newsletter Unsubscription Feature Implementation #687

odero-lavenda opened this issue Feb 28, 2025 · 0 comments

Comments

@odero-lavenda
Copy link

odero-lavenda commented Feb 28, 2025

Description

Implement a feature that enables users to unsubscribe from the newsletter.

Acceptance Criteria

  • User can navigate to the unsubscribe page from the email.
  • User can confirm unsubscription on the unsubscribe page.
  • User receives a confirmation email after successful unsubscription.

Purpose

This feature is needed to allow users to opt out of receiving newsletters if they no longer wish to receive them, ensuring compliance with email marketing regulations and improving user satisfaction.

Requirements

  • The unsubscribe link should be included in the footer of the newsletter email.
  • The unsubscribe page should have a confirmation button.
  • An email service should be used to send the confirmation email.

API Endpoints

1. Generate Unsubscribe Link

Endpoint: GET /api/newsletter/unsubscribe-link?email={user_email}
Description: Generates a unique unsubscribe link for the user.

2. Unsubscribe from Newsletter

Endpoint: POST /api/newsletter/unsubscribe
Request Body:

{
  "email": "[email protected]"
}

Response:

{
  "message": "You have successfully unsubscribed from the newsletter."
}

Expected Outcome

Users who choose to unsubscribe from the newsletter will be able to do so easily and receive a confirmation that their unsubscription was successful.

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

No branches or pull requests

1 participant