Click or drag to resize
SubscriberInfoProvider.Unsubscribe 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: System.Guid
Subscriber GUID
newsletterGuid
Type: System.Guid
Newsletter GUID
siteId
Type: System.Int32
Site ID
sendConfirmationEmail (Optional)
Type: System.Boolean
Indicates whether send confirmation mail
See Also