ISubscriptionServiceSubscribe Method (Int32, Int32, SubscribeSettings) |
Subscribes subscriber to given newsletter.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
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 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