Marketing Email Preference

This guide will help users manage their email notification preferences for new features and product launches in the Next.js Supabase SaaS template.

Overview

This guide will help users manage their email notification preferences for new features and product launches in the Next.js Supabase SaaS template. By default, users are automatically notified when new major features or products are launched. This feature helps keep users informed about important updates within the application.

How It Works

  • Email notifications are enabled by default.
  • This type of notification is for major feature or product updates. You can send emails via Resend to people who have the "subscribed" status set to true.
  • The email notification settings can be managed through the profile settings page.

Managing Email Notifications

While it is not recommended, users can choose to disable email notifications. To disable or re-enable this feature:

  1. Navigate to the "Email Notifications" section in your profile settings.
  2. Toggle the switch next to "Email Notifications".
  3. Upon toggling the switch, the subscription status is updated in the Resend Account. If the status is true, the user is subscribed, and if it's false, they have unsubscribed.

Webhook for Unsubscribing

We also listen for unsubscribe events via the /api/webhook/resend endpoint. When a user clicks on "unsubscribe" in an email, the user is unsubscribed, and the corresponding value in the database is automatically updated.

On this page