Click or drag to resize
SubscriberInfoProviderUnsubscribe Method (Guid, Guid, Int32, Boolean)
Unsubscribes subscriber from newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax
C#
public static void Unsubscribe(
	Guid subscriberGuid,
	Guid newsletterGuid,
	int siteId,
	bool sendConfirmationEmail = true
)

Parameters

subscriberGuid
Type: SystemGuid
Subscriber GUID
newsletterGuid
Type: SystemGuid
Newsletter GUID
siteId
Type: SystemInt32
Site ID
sendConfirmationEmail (Optional)
Type: SystemBoolean
Indicates whether send confirmation mail
See Also