ISubscriptionServiceSubscribe Method (Int32, Int32, SubscribeSettings) |
Subscribes subscriber to given newsletter.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax 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 Exception | Condition |
---|
ArgumentNullException | subscribeSettings is null. |
ArgumentException | Newsletter 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