Click or drag to resize
SubscriberNewsletterInfoProviderAddSubscriberToNewsletter Method

Note: This API is now obsolete.

Adds specified subscriber to the newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use ISubscriberNewsletterInfoProvider.Add(int, int, System.DateTime, bool) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - SubscriberNewsletterInfo.Provider.")]
public static void AddSubscriberToNewsletter(
	int subscriberId,
	int newsletterId,
	DateTime when,
	bool approved
)

Parameters

subscriberId
Type: SystemInt32
SubscriberID
newsletterId
Type: SystemInt32
NewsletterID
when
Type: SystemDateTime
Indication when subscription was created
approved
Type: SystemBoolean
Subscription is approved
See Also