SubscriberInfoProvider ApproveSubscription Method (Int32, Int32, Boolean)Kentico 8.0 API Reference
Approves existing subscription - sets SubscriptionApproved to true and SubscriptionApprovedWhen to current time. Checks if subscription wasn't already approved. Confirmation e-mail may be sent optionally.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

subscriberId
Type: OnlineSystem Int32
ID of subscriber to be subscribed
newsletterId
Type: OnlineSystem Int32
Newsletter ID to subscribe into
sendConfirmationEmail
Type: OnlineSystem Boolean
Indicates if confirmation e-mail should be sent. Confirmation e-mail may also be sent if newsletter settings requires so

Return Value

Type: SubscriberInfoProvider ApprovalResult
Returns TRUE if subscription found and not already approved. Returns FALSE if subscription not already approved.
See Also