ISubscriptionService Interface |
Namespace: CMS.Newsletters
public interface ISubscriptionService
The ISubscriptionService type exposes the following members.
Name | Description | |
---|---|---|
GetAllActiveSubscriptions |
Method returns all subscriptions for given contact. Contact can be subscribed directly or using contact group.
Only active subscriptions are retrieved (not approved one are omitted, unsubscriptions are reflected).
Does not filter out subscriptions blocked using bounces.
| |
IsMarketable(Int32, Int32) |
Returns true if subscriber receives marketing emails.
| |
IsMarketable(ContactInfo, NewsletterInfo) |
Returns true if given contact receives marketing emails of the given newsletter.
| |
IsUnsubscribed |
Returns true if specified email address is unsubscribed from newsletter.
| |
RemoveSubscription |
Unsubscribe the subscriber from the newsletter.
Removes the binding from newsletter subscriber table.
| |
Subscribe(ContactGroupInfo, NewsletterInfo) |
Subscribes contact group to given newsletter.
| |
Subscribe(Int32, Int32, SubscribeSettings) |
Subscribes subscriber to given newsletter.
| |
Subscribe(ContactInfo, NewsletterInfo, SubscribeSettings) |
Subscribes contact to given newsletter.
| |
UnsubscribeFromAllNewsletters |
Unsubscribes the email from all newsletters. SubscriberUnsubscribes event is invoked after unsubscribing.
Binding in the newsletter-subscription table will stay.
Email will be added into the unsubscription list.
| |
UnsubscribeFromSingleNewsletter |
Unsubscribes the email from newsletter. SubscriberUnsubscribes event is invoked after unsubscribing.
Binding in the newsletter-subscription table will stay.
Email will be added into the unsubscription list.
Optionally, you can decide whether to send confirmation email.
|