ISubscriptionApprovalServiceApproveSubscription Method |
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: 12.0.0
Syntax ApprovalResult ApproveSubscription(
string subscriptionHash,
bool sendConfirmationEmail,
string siteName,
DateTime datetime
)
Parameters
- subscriptionHash
- Type: SystemString
Hash parameter representing specific subscription - sendConfirmationEmail
- Type: SystemBoolean
Indicates if confirmation e-mail should be sent. Confirmation e-mail may also be sent if newsletter settings requires so - siteName
- Type: SystemString
Site name - datetime
- Type: SystemDateTime
Date and time of request.
Return Value
Type:
ApprovalResultRemarks
If the subscription is approved, peforms logging of the subscription logging activity.
See Also