Subscribes subscriber to newsletter.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.0.0.0 (8.1.5347.20411)
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