Click or drag to resize
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.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
Syntax
C#
void UnsubscribeFromAllNewsletters(
	string email,
	Nullable<int> issueID = null,
	bool sendConfirmationEmail = true
)

Parameters

email
Type: SystemString
Email address
issueID (Optional)
Type: SystemNullableInt32
ID of issue that visitor used for unsubscription. Use only when issue ID is known.
sendConfirmationEmail (Optional)
Type: SystemBoolean
The parameter for backward compatibility - it is not used anymore.
Exceptions
ExceptionCondition
ArgumentExceptionEmail is not specified
See Also