SubscriberInfoProviderApproveSubscription Method (Int32, Int32, Boolean) |
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.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax public static SubscriberInfoProviderApprovalResult ApproveSubscription(
int subscriberId,
int newsletterId,
bool sendConfirmationEmail
)
Parameters
- subscriberId
- Type: SystemInt32
ID of subscriber to be subscribed - newsletterId
- Type: SystemInt32
Newsletter ID to subscribe into - sendConfirmationEmail
- Type: SystemBoolean
Indicates if confirmation e-mail should be sent. Confirmation e-mail may also be sent if newsletter settings requires so
Return Value
Type:
SubscriberInfoProviderApprovalResultReturns TRUE if subscription found and not already approved. Returns FALSE if subscription not already approved.
See Also