ISubscriptionServiceUnsubscribeFromAllNewsletters Method |
Unsubscribes the email from all newsletters.
SubscriberUnsubscribes event is invoked after unsubscribing.
Binding in the newsletter-subscription table will stay.
Email will be added into the unsubscription list.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax void UnsubscribeFromAllNewsletters(
string email,
int siteID,
Nullable<int> issueID = null,
bool sendConfirmationEmail = true
)
Parameters
- email
- Type: SystemString
Email address - siteID
- Type: SystemInt32
Site ID that email is unsubscribed from. Must be set also when unsubscriptions are global. - issueID (Optional)
- Type: SystemNullableInt32
ID of issue that visitor used for unsubscription. Use only when issue ID is known. - sendConfirmationEmail (Optional)
- Type: SystemBoolean
If true, confirmation email will be send after successful unsubscription
Exceptions See Also