Click or drag to resize
ISubscriptionServiceSubscribe Method (Int32, Int32, SubscribeSettings)
Subscribes subscriber to given newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
void Subscribe(
	int subscriberID,
	int newsletterID,
	SubscribeSettings subscribeSettings
)

Parameters

subscriberID
Type: SystemInt32
Subscriber ID.
newsletterID
Type: SystemInt32
Newsletter ID.
subscribeSettings
Type: CMS.NewslettersSubscribeSettings
Options defining additional behavior of this method. Cannot be null.
Exceptions
ExceptionCondition
ArgumentNullExceptionsubscribeSettings is null.
ArgumentExceptionNewsletter does not exist or email is not specified.
Remarks
If the subscription is approved, performs logging of the subscription logging activity. Whether or not email is removed from newsletter unsubscription or "unsubscribe from all" list can be specified in subscribeSettings parameter.
See Also