If your app sends emails to a site’s users, it’s really important to make sure you don’t send emails to anyone that’s unsubscribed from that site’s mailing list. This helps you to comply with regulations relating to email communications (like GDPR) and maintain a positive user experience.
Here’s how to manage site visitor subscriptions correctly:
Before you send any emails, check whether or not a user is subscribed.
There are two ways to do this:
When a user unsubscribes, you need to make sure that you update the email subscription status.
You can either: