OnlineMarketingTransformationFunctions SubscribedToNewsletter Method Kentico 8.1 API Reference
Checks whether contact is subscribed to the given newsletter. Check is made based on the contact's email address. If there is a subscriber with the contact's email subscribed to the newsletter, it means contact is subscribed. If subscriber with contact's email is not subscribed, contact's activities are checked. If contact has subscription activity, he is subscribed.

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

Parameters

contact
Type: OnlineSystem Object
Contact whose email should be checked
newsletterName
Type: OnlineSystem String
Newsletter name
lastXDays
Type: OnlineSystem Int32
Constraint for last X days (if zero or negative value is given, no constraint is applied)

Return Value

Type: OnlineBoolean
See Also