Model
SubscriptionManager
Magento\Newsletter\Model\SubscriptionManager
What it does
This class manages newsletter subscription operations for both guest users and registered customers in Magento 2.
Developers use it to programmatically subscribe/unsubscribe users, handle confirmation requirements, and send appropriate notification emails.
It serves as the central service for all newsletter subscription status changes throughout the system.
Public Methods
- subscribe()
- unsubscribe()
- subscribeCustomer()
- unsubscribeCustomer()