Click or drag to resize
SubscriberInfoProviderUnsubscribeFromNewsletters Method (String, ListInt32, Int32, Boolean, Guid, Hashtable)
Unsubscribe subscribers from specified newsletters.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax
C#
public static List<string> UnsubscribeFromNewsletters(
	string importString,
	List<int> newsletterIds,
	int siteId,
	bool sendEmail,
	Guid processGuid = null,
	Hashtable errors = null
)

Parameters

importString
Type: SystemString
String representation of subscribers in format 'email;firstName;lastName'
newsletterIds
Type: System.Collections.GenericListInt32
Array list with newsletter IDs where should be the subscribers removed from
siteId
Type: SystemInt32
Site ID
sendEmail
Type: SystemBoolean
Indicates if confirmation e-mail should be sent
processGuid (Optional)
Type: SystemGuid
Asynchronous process Guid
errors (Optional)
Type: System.CollectionsHashtable
Hashtable with errors for asynchronous process

Return Value

Type: ListString
See Also