Subscribes subscriber to newsletter.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- subscriberId
- Type: System Int32
Subscriber ID
- newsletterId
- Type: System Int32
Newsletter ID
- when
- Type: System DateTime
Time when the subscriber was subscribed (used by import)
- sendConfirmationEmail (Optional)
- Type: System Boolean
Indicates whether send confirmation e-mail
- sendOptInEmail (Optional)
- Type: System Boolean
Indicates if double opt-in e-mail should be send
Exceptions
Exception | Condition |
---|---|
System InvalidOperationException | Thrown when subscriber's site doesn't exist |
See Also