Click or drag to resize
SubscriberImporterImportSubscribersToSite Method (String, ListInt32, Int32, Boolean, Boolean, Boolean, Boolean)
Import subscribers.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax
C#
public static List<string> ImportSubscribersToSite(
	string importString,
	List<int> newsletterIds,
	int siteId,
	bool overwriteExisting,
	bool sendEmail,
	bool doNotSubscribeExisting,
	bool requireOptIn
)

Parameters

importString
Type: SystemString
String representation of imported subscribers
newsletterIds
Type: System.Collections.GenericListInt32
Array list with newsletters' IDs where should be the subscribers added
siteId
Type: SystemInt32
Site ID
overwriteExisting
Type: SystemBoolean
If true, subscribers with the same email are overwritten
sendEmail
Type: SystemBoolean
Send confirmation email
doNotSubscribeExisting
Type: SystemBoolean
Indicates if existing users should not be subscribed
requireOptIn
Type: SystemBoolean
Indicates double opt-in is requested

Return Value

Type: ListString
See Also