BlogPostSubscriptionInfoProvider ApproveSubscriptionInternal Method Kentico 8.1 API Reference
Approves existing subscription - sets SubscriptionApproved to true. Checks if subscription wasn't already approved. Confirmation e-mail may be sent optionally.

Namespace: CMS.Blogs
Assembly: CMS.Blogs (in CMS.Blogs.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

bpsi
Type: CMS.Blogs BlogPostSubscriptionInfo
Blog post subscription
subscriptionHash
Type: OnlineSystem String
Hash parameter representing specific subscription
sendConfirmationEmail
Type: OnlineSystem Boolean
Indicates if confirmation e-mail should be sent. Confirmation e-mail may also be sent if blog settings requires so
siteName
Type: OnlineSystem String
Site name.
datetime
Type: OnlineSystem DateTime
Date and time of request.

Return Value

Type: OptInApprovalResultEnum
Returns TRUE if subscription found and not already approved. Returns FALSE if subscription not found or already approved.
See Also