aimanecouissi / module-newsletter-confirmation-suppress
Suppress newsletter confirmations during email changes
Package info
github.com/aimanecouissi/magento2-module-newsletter-confirmation-suppress
Type:magento2-module
pkg:composer/aimanecouissi/module-newsletter-confirmation-suppress
Requires
- php: ^8.3
- magento/framework: 103.0.*
README
Suppresses newsletter confirmation success emails during customer email changes. The module targets storefront account saves, Admin customer saves, and Admin inline customer edits where the customer's newsletter subscription status is unchanged.
Installation
composer require aimanecouissi/module-newsletter-confirmation-suppress bin/magento module:enable AimaneCouissi_NewsletterConfirmationSuppress bin/magento setup:upgrade bin/magento cache:flush
Usage
When a subscribed customer changes the email address from My Account → Account Information, the Admin → Customers → All Customers grid, or Admin inline customer editing, the module registers a suppression flag around that save. The newsletter confirmation success email is skipped only when the subscription status is unchanged, and new subscriptions continue through Magento normal newsletter confirmation flow.
Uninstall
bin/magento module:disable AimaneCouissi_NewsletterConfirmationSuppress composer remove aimanecouissi/module-newsletter-confirmation-suppress bin/magento setup:upgrade bin/magento cache:flush
Changelog
See CHANGELOG for all recent changes.