Programmatically Unsubscribe Customer

Use the code given below to unsubscribe the email.

[php]
Mage::getModel(‘newsletter/subscriber’)->loadByEmail($emailAddress)->unsubscribe();
[/php]

Leave a Comment

Your email address will not be published. Required fields are marked *

*